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:
committed by
michaelni
parent
5732075535
commit
ec26cd494f
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user