You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/concat: accept a single segment
Simplify scripting operations, so that n=1 is not to be considered as a special case.
This commit is contained in:
@@ -59,7 +59,7 @@ typedef struct {
|
|||||||
|
|
||||||
static const AVOption concat_options[] = {
|
static const AVOption concat_options[] = {
|
||||||
{ "n", "specify the number of segments", OFFSET(nb_segments),
|
{ "n", "specify the number of segments", OFFSET(nb_segments),
|
||||||
AV_OPT_TYPE_INT, { .i64 = 2 }, 2, INT_MAX, V|A|F},
|
AV_OPT_TYPE_INT, { .i64 = 2 }, 1, INT_MAX, V|A|F},
|
||||||
{ "v", "specify the number of video streams",
|
{ "v", "specify the number of video streams",
|
||||||
OFFSET(nb_streams[AVMEDIA_TYPE_VIDEO]),
|
OFFSET(nb_streams[AVMEDIA_TYPE_VIDEO]),
|
||||||
AV_OPT_TYPE_INT, { .i64 = 1 }, 0, INT_MAX, V|F },
|
AV_OPT_TYPE_INT, { .i64 = 1 }, 0, INT_MAX, V|F },
|
||||||
|
Reference in New Issue
Block a user