summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-06-14 17:34:31 -0700
committerJohn Stebbins <[email protected]>2018-06-27 10:34:38 -0700
commitd444faf3c3cdfd888b209615d57855653c0e4732 (patch)
tree057b39e4116acc295003ec12ecbb00a3e13b3074 /libhb
parente7b1636fca20d91241ff3e1c12919a3123d05daf (diff)
resample: fix dithering
It was only being allowed for certain codecs when it should be allowed for all.
Diffstat (limited to 'libhb')
-rw-r--r--libhb/common.c13
1 files 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)