diff options
author | John Stebbins <[email protected]> | 2016-07-18 13:42:25 -0700 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2016-09-02 03:33:06 -0400 |
commit | fb78eca4a49077c171ad78177c1615c205adc642 (patch) | |
tree | a74bd30ca1ab0f67e4a37c0c728273d87dc57635 /libhb/work.c | |
parent | e7a320cb6223a2389db025e8bd8001ee9ece9769 (diff) |
contrib: Add opus audio encoder.
Remove:
hb_audio_samplerate_get_best()
Add:
hb_audio_samplerate_is_supported()
hb_audio_samplerate_find_closest()
hb_audio_samplerate_get_sr_shift()
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libhb/work.c b/libhb/work.c index afb866394..a2290cc8b 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -967,9 +967,8 @@ static int sanitize_audio(hb_job_t *job) audio->config.out.samplerate = audio->config.in.samplerate; } best_samplerate = - hb_audio_samplerate_get_best(audio->config.out.codec, - audio->config.out.samplerate, - NULL); + hb_audio_samplerate_find_closest(audio->config.out.samplerate, + audio->config.out.codec); if (best_samplerate != audio->config.out.samplerate) { hb_log("work: sanitizing track %d unsupported samplerate %d Hz to %s kHz", |