From fb78eca4a49077c171ad78177c1615c205adc642 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Mon, 18 Jul 2016 13:42:25 -0700 Subject: 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() --- gtk/src/hb-backend.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'gtk/src/hb-backend.c') 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) -- cgit v1.2.3