diff options
Diffstat (limited to 'macosx/HBAudioTrack.m')
-rw-r--r-- | macosx/HBAudioTrack.m | 4 |
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)}]; |