]> granicus.if.org Git - handbrake/commitdiff
resample: fix dithering
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 15 Jun 2018 00:34:31 +0000 (17:34 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 27 Jun 2018 17:34:38 +0000 (10:34 -0700)
It was only being allowed for certain codecs when it should be allowed
for all.

libhb/common.c

index 94e823154844707b97aeef02fc9017e62582cf75..a4c84198f4fa1e70a0a1b5be5fbb7cb1b30e6368 100644 (file)
@@ -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)