[MPlayer-cvslog] r25467 - trunk/libswscale/swscale.c

benoit subversion at mplayerhq.hu
Thu Dec 20 11:08:36 CET 2007


Author: benoit
Date: Thu Dec 20 11:08:36 2007
New Revision: 25467

Log:
Make sure strides have positive values before converting.
Patch by Peter Schlaile: peter schlaile de


Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	(original)
+++ trunk/libswscale/swscale.c	Thu Dec 20 11:08:36 2007
@@ -1681,7 +1681,7 @@ static int rgb2rgbWrapper(SwsContext *c,
 
     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 MPlayer-cvslog mailing list