summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioTrack.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-09-03 16:56:45 +0200
committerDamiano Galassi <[email protected]>2016-09-03 16:56:45 +0200
commit29c7a63c2ae91fc557f5586587a3a3e949ca8843 (patch)
tree4f187d90f1b47ebb604da7654722840a008d5448 /macosx/HBAudioTrack.m
parent565db98b0a637142ce79e907e88899e4fe799adf (diff)
MacGui: add libopus to Xcode project link phase.
Diffstat (limited to 'macosx/HBAudioTrack.m')
-rw-r--r--macosx/HBAudioTrack.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m
index aa8f8f99b..1c998cc4f 100644
--- a/macosx/HBAudioTrack.m
+++ b/macosx/HBAudioTrack.m
@@ -233,7 +233,7 @@ static NSMutableArray *masterBitRateArray = nil;
}
else if (samplerate)
{
- samplerate = hb_audio_samplerate_get_best(codec, samplerate, NULL);
+ samplerate = hb_audio_samplerate_find_closest(samplerate, codec);
[self setSampleRateFromName:@(hb_audio_samplerate_get_name(samplerate))];
}
}
@@ -340,7 +340,7 @@ static NSMutableArray *masterBitRateArray = nil;
audio_samplerate = hb_audio_samplerate_get_next(audio_samplerate))
{
int rate = audio_samplerate->rate;
- if (rate == hb_audio_samplerate_get_best(codec, rate, NULL))
+ if (rate == hb_audio_samplerate_find_closest(rate, codec))
{
[samplerates addObject:@{keyAudioSampleRateName: @(audio_samplerate->name),
keyAudioSamplerate: @(rate)}];