This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit d247110148169ea00d3c346af23b9f586cdd1cfd Author: Jun Zhao <[email protected]> AuthorDate: Sun Apr 19 08:42:36 2026 +0800 Commit: Jun Zhao <[email protected]> CommitDate: Tue Apr 28 06:14:38 2026 +0000 fate/filter-video: add regression test for scale zero-dim rejection Add a regression test covering issue #22817: cascaded scale=...:-2 filters on extreme aspect ratios previously produced zero output dimensions silently. The test expects ffmpeg to fail fast. Signed-off-by: Jun Zhao <[email protected]> --- tests/fate/filter-video.mak | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 5016ea9d4d..5a7ffc3fe0 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -523,6 +523,14 @@ FATE_FILTER_VSYNTH-$(call FILTERDEMDEC, SCALE, RAWVIDEO, RAWVIDEO) += fate-filte fate-filter-scalechroma: tests/data/vsynth1.yuv fate-filter-scalechroma: CMD = framecrc -flags bitexact -s 352x288 -pix_fmt yuv444p -i $(TARGET_PATH)/tests/data/vsynth1.yuv -pix_fmt yuv420p -sws_flags +bitexact -vf scale=out_chroma_loc=bottomleft +# Regression test: cascaded scale=...:-2 on extreme aspect ratios could +# previously produce zero output dimensions, silently accepted by scale +# filter and potentially hanging downstream encoders (issue #22817). +# Verify that such invalid dimensions are now rejected explicitly. +FATE_FILTER-$(call ALLYES, SCALE_FILTER COLOR_FILTER LAVFI_INDEV WRAPPED_AVFRAME_ENCODER NULL_MUXER) += fate-filter-scale-zero-dim +fate-filter-scale-zero-dim: CMD = ! $(FFMPEG) -nostdin -hide_banner -f lavfi -i "color=c=red:s=3000x2:d=1" -vf "scale=iw/2:-2,scale=iw/3:-2,scale=iw/2:-2" -f null none +fate-filter-scale-zero-dim: CMP = null + FATE_FILTER_VSYNTH_VIDEO_FILTER-$(CONFIG_VFLIP_FILTER) += fate-filter-vflip fate-filter-vflip: CMD = video_filter "vflip" _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
