1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

avfilter: declare filters that handle changed frame sizes

These filters process each frame with its own size.

Found during review of the fix for the security report RqgTntCAW2qN.
This commit is contained in:
Michael Niedermayer
2026-10-11 00:01:16 +02:00
committed by michaelni
parent 5732075535
commit ec26cd494f
11 changed files with 12 additions and 0 deletions

View File

@@ -484,6 +484,7 @@ const FFFilter ff_vf_drawgraph = {
FILTER_INPUTS(drawgraph_inputs),
FILTER_OUTPUTS(drawgraph_outputs),
FILTER_QUERY_FUNC2(query_formats),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_PARAMS,
};
#endif // CONFIG_DRAWGRAPH_FILTER

View File

@@ -239,6 +239,7 @@ const FFFilter ff_vf_interleave = {
.init = init,
.activate = activate,
FILTER_OUTPUTS(interleave_outputs),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_PARAMS,
};
#endif

View File

@@ -306,6 +306,7 @@ const FFFilter ff_vf_streamselect = {
.uninit = uninit,
.activate = activate,
.priv_size = sizeof(StreamSelectContext),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_PARAMS,
};
const FFFilter ff_af_astreamselect = {

View File

@@ -308,4 +308,5 @@ const FFFilter ff_vf_colordetect = {
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_QUERY_FUNC2(query_format),
.activate = activate,
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};

View File

@@ -76,4 +76,5 @@ const FFFilter ff_vf_copy = {
FILTER_INPUTS(avfilter_vf_copy_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_QUERY_FUNC2(query_formats),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};

View File

@@ -482,6 +482,7 @@ const FFFilter ff_vf_drawbox = {
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_PIXFMTS_ARRAY(pix_fmts),
.process_command = process_command,
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};
#endif /* CONFIG_DRAWBOX_FILTER */
@@ -557,6 +558,7 @@ const FFFilter ff_vf_drawgrid = {
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_PIXFMTS_ARRAY(pix_fmts),
.process_command = process_command,
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};
#endif /* CONFIG_DRAWGRID_FILTER */

View File

@@ -136,4 +136,5 @@ const FFFilter ff_vf_iccdetect = {
.uninit = &iccdetect_uninit,
FILTER_INPUTS(iccdetect_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_PARAMS,
};

View File

@@ -172,4 +172,5 @@ const FFFilter ff_vf_iccgen = {
.uninit = &iccgen_uninit,
FILTER_INPUTS(iccgen_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_PARAMS,
};

View File

@@ -139,4 +139,5 @@ const FFFilter ff_vf_ocr = {
FILTER_INPUTS(ocr_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_PIXFMTS_ARRAY(pix_fmts),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};

View File

@@ -165,4 +165,5 @@ const FFFilter ff_vf_shuffleplanes = {
FILTER_INPUTS(shuffleplanes_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
FILTER_QUERY_FUNC2(query_formats),
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};

View File

@@ -1109,4 +1109,5 @@ const FFFilter ff_vf_zscale = {
FILTER_OUTPUTS(avfilter_vf_zscale_outputs),
FILTER_QUERY_FUNC2(query_formats),
.process_command = process_command,
.flags_internal = FF_FILTER_FLAG_DYNAMIC_FRAME_SIZE,
};