diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-16 23:50:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-17 00:06:12 +0200 |
commit | 3e0b29ccd075039d4494cafd4738bdf8322068b0 (patch) | |
tree | 41467c62f30ce98d816a2a2a1a7a8b3142891e11 /ffmpeg_opt.c | |
parent | a07e9d72a1d97dc6a4d57e1f7b708e54e7db83f5 (diff) | |
download | ffmpeg-3e0b29ccd075039d4494cafd4738bdf8322068b0.tar.gz |
ffmpeg: Make video filter graph reinit user selectable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r-- | ffmpeg_opt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index fefb785945..1d0cff20d7 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -579,6 +579,9 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic) ist->dec = choose_decoder(o, ic, st); + ist->reinit_filters = -1; + MATCH_PER_STREAM_OPT(reinit_filters, i, ist->reinit_filters, ic, st); + switch (dec->codec_type) { case AVMEDIA_TYPE_VIDEO: if(!ist->dec) @@ -2341,6 +2344,8 @@ const OptionDef options[] = { "set profile", "profile" }, { "filter", HAS_ARG | OPT_STRING | OPT_SPEC, { .off = OFFSET(filters) }, "set stream filterchain", "filter_list" }, + { "reinit_filter", HAS_ARG | OPT_INT | OPT_SPEC, { .off = OFFSET(reinit_filters) }, + "reinit filtergraph on input parameter changes", "" }, { "filter_complex", HAS_ARG | OPT_EXPERT, { .func_arg = opt_filter_complex }, "create a complex filtergraph", "graph_description" }, { "stats", OPT_BOOL, { &print_stats }, |