[FFmpeg-devel] [PATCH] Fix vf_cropdetect returning negative rectangles
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...
Size: 1924 bytes
Desc: not available
More information about the ffmpeg-devel