aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-12-24 00:20:44 -0300
committerJames Almer <jamrial@gmail.com>2024-12-31 11:30:09 -0300
commit9d16c64134b1731f5aa98f9a31afa297b1193018 (patch)
tree5847881735fa9120f1777451e14c0f7aa77b3cd5
parent376bb8481ada994ffe16d0a02f6c8767bac21016 (diff)
downloadffmpeg-9d16c64134b1731f5aa98f9a31afa297b1193018.tar.gz
avcodec/ac3dec_float: fix range for dmix_mode
Value 3 is used to signal "Dolby Pro Logic II" by some encoders. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/ac3dec_float.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec_float.c b/libavcodec/ac3dec_float.c
index d1a48349e5..53d9d472c4 100644
--- a/libavcodec/ac3dec_float.c
+++ b/libavcodec/ac3dec_float.c
@@ -46,7 +46,7 @@ static const AVOption options[] = {
{ "heavy_compr", "enable heavy dynamic range compression", OFFSET(heavy_compression), AV_OPT_TYPE_BOOL, {.i64 = 0 }, 0, 1, PAR },
{ "target_level", "target level in -dBFS (0 not applied)", OFFSET(target_level), AV_OPT_TYPE_INT, {.i64 = 0 }, -31, 0, PAR },
-{"dmix_mode", "Preferred Stereo Downmix Mode", OFFSET(preferred_stereo_downmix), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 2, EXPORT, .unit = "dmix_mode"},
+{"dmix_mode", "Preferred Stereo Downmix Mode", OFFSET(preferred_stereo_downmix), AV_OPT_TYPE_INT, {.i64 = -1 }, -1, 3, EXPORT, .unit = "dmix_mode"},
{"ltrt_cmixlev", "Lt/Rt Center Mix Level", OFFSET(ltrt_center_mix_level), AV_OPT_TYPE_FLOAT, {.dbl = -1.0 }, -1.0, 2.0, EXPORT },
{"ltrt_surmixlev", "Lt/Rt Surround Mix Level", OFFSET(ltrt_surround_mix_level), AV_OPT_TYPE_FLOAT, {.dbl = -1.0 }, -1.0, 2.0, EXPORT },
{"loro_cmixlev", "Lo/Ro Center Mix Level", OFFSET(loro_center_mix_level), AV_OPT_TYPE_FLOAT, {.dbl = -1.0 }, -1.0, 2.0, EXPORT },