diff options
author | John Stebbins <[email protected]> | 2020-07-01 14:33:17 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2020-07-01 15:05:39 -0700 |
commit | d3ea0cbb24a5da4fac6ead6656aacf09c13e5479 (patch) | |
tree | 0516dfa409c21bc26f2c0423504daa2623aad47d /test | |
parent | c3e2d6b5dd1071476de70443f0cf7e8a3b3aa373 (diff) |
Only dither audio when necessary
If dither is "auto", only enable dither if source depth > dest depth
Lossy codecs do not have a fixed bit depth, so we treat them as >= 24
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c index 135ff368a..6fbc6ce97 100644 --- a/test/test.c +++ b/test/test.c @@ -1613,7 +1613,7 @@ static void ShowHelp() encoder = NULL; while ((encoder = hb_audio_encoder_get_next(encoder)) != NULL) { - if (hb_audio_dither_is_supported(encoder->codec)) + if (hb_audio_dither_is_supported(encoder->codec, 0)) { fprintf(out, " %s\n", encoder->short_name); } @@ -5021,7 +5021,7 @@ PrepareJob(hb_handle_t *h, hb_title_t *title, hb_dict_t *preset_dict) int codec; audio_dict = hb_value_array_get(audio_array, ii); codec = hb_value_get_int(hb_dict_get(audio_dict, "Encoder")); - if (hb_audio_dither_is_supported(codec)) + if (hb_audio_dither_is_supported(codec, 0)) { hb_dict_set(audio_dict, "DitherMethod", hb_value_double(dither)); |