From: John Stebbins Date: Fri, 15 Jun 2018 00:34:31 +0000 (-0700) Subject: resample: fix dithering X-Git-Tag: 1.2.0~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d444faf3c3cdfd888b209615d57855653c0e4732;p=handbrake resample: fix dithering It was only being allowed for certain codecs when it should be allowed for all. --- diff --git a/libhb/common.c b/libhb/common.c index 94e823154..a4c84198f 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -1705,17 +1705,8 @@ int hb_audio_dither_get_default_method() int hb_audio_dither_is_supported(uint32_t codec) { - // encoder's input sample format must be s16(p) - switch (codec) - { - case HB_ACODEC_FFFLAC: - case HB_ACODEC_FDK_AAC: - case HB_ACODEC_FDK_HAAC: - return 1; - - default: - return 0; - } + // Since dithering is performed by swresample, all codecs are supported + return 1; } int hb_audio_dither_get_from_name(const char *name)