Skip to content

Commit

Permalink
lavfi/streamselect: enable runtime change flag
Browse files Browse the repository at this point in the history
enable runtime change flag.

Signed-off-by: Jun Zhao <[email protected]>
  • Loading branch information
mypopydev committed Jan 13, 2020
1 parent d9e78a7 commit f2a095a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libavfilter/f_streamselect.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ typedef struct StreamSelectContext {

#define OFFSET(x) offsetof(StreamSelectContext, x)
#define FLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM
#define TFLAGS AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_RUNTIME_PARAM
static const AVOption streamselect_options[] = {
{ "inputs", "number of input streams", OFFSET(nb_inputs), AV_OPT_TYPE_INT, {.i64=2}, 2, INT_MAX, .flags=FLAGS },
{ "map", "input indexes to remap to outputs", OFFSET(map_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags=FLAGS },
{ "map", "input indexes to remap to outputs", OFFSET(map_str), AV_OPT_TYPE_STRING, {.str=NULL}, .flags=TFLAGS },
{ NULL }
};

Expand Down

0 comments on commit f2a095a

Please sign in to comment.