[FFmpeg-devel] [PATCH] Fix vf_cropdetect returning negative rectangles

hjiodjf 97xgw46 jfbvxt at gmail.com
Tue Sep 2 23:20:40 CEST 2014

The cropdetect filter is prone to reporting negative-sized rectangles,
particularly for dark images. This patch adjusts the limits of the
filter loops, preventing the left/right and top/bottom offsets from
crossing each other, so that such a zero-sized rectangle is reported
instead of a negative one. This improves the reliability of using
cropdetect to find a maximum bounding rectangle.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Prevent-vf_cropdetect-from-returning-negative-rectan.patch
Type: application/octet-stream
Size: 1924 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140902/b04b0529/attachment.obj>

More information about the ffmpeg-devel mailing list