Browse code

lavfi/concat: accept a single segment

Simplify scripting operations, so that n=1 is not to be considered as a
special case.

Stefano Sabatini authored on 2014/10/21 18:45:30
Showing 1 changed files
... ...
@@ -59,7 +59,7 @@ typedef struct {
59 59
 
60 60
 static const AVOption concat_options[] = {
61 61
     { "n", "specify the number of segments", OFFSET(nb_segments),
62
-      AV_OPT_TYPE_INT, { .i64 = 2 }, 2, INT_MAX, V|A|F},
62
+      AV_OPT_TYPE_INT, { .i64 = 2 }, 1, INT_MAX, V|A|F},
63 63
     { "v", "specify the number of video streams",
64 64
       OFFSET(nb_streams[AVMEDIA_TYPE_VIDEO]),
65 65
       AV_OPT_TYPE_INT, { .i64 = 1 }, 0, INT_MAX, V|F },