From d444faf3c3cdfd888b209615d57855653c0e4732 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 14 Jun 2018 17:34:31 -0700 Subject: resample: fix dithering It was only being allowed for certain codecs when it should be allowed for all. --- libhb/common.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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) -- cgit v1.2.3