diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-22 14:39:11 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-12-04 14:07:19 +0100 |
commit | b9c928a486fda3c0d79b153591ac86beb1c53708 (patch) | |
tree | 4cbc1fe372de041aa3a147c60a31bf5fba532356 /libavfilter/vf_format.c | |
parent | 944c34a94c3150fc84816c3288cc6f2143f1581b (diff) | |
download | ffmpeg-b9c928a486fda3c0d79b153591ac86beb1c53708.tar.gz |
avfilter: add AVFILTER_FLAG_METADATA_ONLY
This flag allows distinguishing between filters that actually modify the
data and those that only modify metadata or gather some stream
information.
Diffstat (limited to 'libavfilter/vf_format.c')
-rw-r--r-- | libavfilter/vf_format.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 7e15c43086..c78acbf87b 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -169,6 +169,8 @@ const AVFilter ff_vf_format = { .priv_size = sizeof(FormatContext), .priv_class = &format_class, + .flags = AVFILTER_FLAG_METADATA_ONLY, + FILTER_INPUTS(avfilter_vf_format_inputs), FILTER_OUTPUTS(avfilter_vf_format_outputs), @@ -203,6 +205,8 @@ const AVFilter ff_vf_noformat = { .priv_size = sizeof(FormatContext), + .flags = AVFILTER_FLAG_METADATA_ONLY, + FILTER_INPUTS(avfilter_vf_noformat_inputs), FILTER_OUTPUTS(avfilter_vf_noformat_outputs), |