[FFmpeg-devel] [PATCH] avfilter/vsrc_testsrc: fix colorchart black stripe

Vladimir Petrov vppetrovmms at gmail.com
Fri Jan 12 13:58:03 EET 2024


There is a typo at 'libavfilter/vsrc_testsrc.c' in
'colorchart_fill_picture()' regarding patch height when using
colorchart test image source. With current default size 64x64 all is
fine, but when move to any non-square patch size, there is unexpected
behavior:

Test examples:

[Blackstripe on bottom if height > width]
ffmpeg -f lavfi -i colorchart=duration=30:rate=25:patch_size=120x144
-f mp4 -c:v libx264 colorchart1.m4v

[Segmentation fault if height < width]
ffmpeg -f lavfi -i colorchart=duration=30:rate=25:patch_size=120x100
-f mp4 -c:v libx264 colorchart2.m4v
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter-vsrc_testsrc-fix-colorchart-black-stripe.patch
Type: text/x-patch
Size: 1003 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240112/991e523d/attachment.bin>


More information about the ffmpeg-devel mailing list