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 /gtk | |
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 'gtk')
-rw-r--r-- | gtk/configure.ac | 2 | ||||
-rw-r--r-- | gtk/src/hb-backend.c | 15 |
2 files changed, 2 insertions, 15 deletions
diff --git a/gtk/configure.ac b/gtk/configure.ac index 3b690b21f..4c75f4a90 100644 --- a/gtk/configure.ac +++ b/gtk/configure.ac @@ -164,7 +164,7 @@ PKG_CHECK_MODULES(GHB, [$GHB_PACKAGES]) GHB_CFLAGS="$HBINC $GHB_CFLAGS" -HB_LIBS="-lhandbrake -lavresample -lavformat -lavcodec -lavfilter -lavutil -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson" +HB_LIBS="-lhandbrake -lavresample -lavformat -lavcodec -lavfilter -lavutil -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2 -ljansson -lopus" case $host in *-*-mingw*) diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 5feababa5..1df18e703 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1011,20 +1011,7 @@ lookup_param_option(const hb_filter_param_t *param, const GhbValue *gval) gint ghb_find_closest_audio_samplerate(gint irate) { - gint result; - const hb_rate_t *rate; - - result = 0; - for (rate = hb_audio_samplerate_get_next(NULL); rate != NULL; - rate = hb_audio_samplerate_get_next(rate)) - { - if (irate <= rate->rate) - { - result = rate->rate; - break; - } - } - return result; + return hb_audio_samplerate_find_closest(irate, HB_ACODEC_INVALID); } const iso639_lang_t* ghb_iso639_lookup_by_int(int idx) |