]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/af_amix: change the max range of the number of inputs
authorLimin Wang <lance.lmwang@gmail.com>
Mon, 6 Jan 2020 13:48:38 +0000 (21:48 +0800)
committerPaul B Mahol <onemda@gmail.com>
Sat, 11 Jan 2020 10:35:51 +0000 (11:35 +0100)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavfilter/af_amix.c

index 89a1b0568f6b23a5041593c14c1d5f95b79a9e53..af8ad58262f96596520a8418e8e57595fbd3e8f8 100644 (file)
@@ -182,7 +182,7 @@ typedef struct MixContext {
 #define F AV_OPT_FLAG_FILTERING_PARAM
 static const AVOption amix_options[] = {
     { "inputs", "Number of inputs.",
-            OFFSET(nb_inputs), AV_OPT_TYPE_INT, { .i64 = 2 }, 1, 1024, A|F },
+            OFFSET(nb_inputs), AV_OPT_TYPE_INT, { .i64 = 2 }, 1, INT16_MAX, A|F },
     { "duration", "How to determine the end-of-stream.",
             OFFSET(duration_mode), AV_OPT_TYPE_INT, { .i64 = DURATION_LONGEST }, 0,  2, A|F, "duration" },
         { "longest",  "Duration of longest input.",  0, AV_OPT_TYPE_CONST, { .i64 = DURATION_LONGEST  }, 0, 0, A|F, "duration" },