[FFmpeg-devel] [PATCH] libswscale bugfix for negative srcStride & dstStride
Peter Schlaile
peter
Wed Dec 19 23:54:36 CET 2007
Hi,
the attached patch fixes a nasty bug, when both srcStride and dstStride
are negative. The code was a little bit overoptimized here...
Sincerely,
Peter Schlaile
-------------- next part --------------
Index: swscale.c
===================================================================
--- swscale.c (revision 12850)
+++ swscale.c (working copy)
@@ -1678,7 +1678,7 @@
if(conv)
{
- if (dstStride[0]*srcBpp == srcStride[0]*dstBpp)
+ if (dstStride[0]*srcBpp == srcStride[0]*dstBpp && srcStride[0] > 0)
conv(src[0], dst[0] + dstStride[0]*srcSliceY, srcSliceH*srcStride[0]);
else
{
More information about the ffmpeg-devel
mailing list