changeset 25439:17098467fc9b

Make sure strides have positive values before converting. Patch by Peter Schlaile: peter schlaile de
author benoit
date Thu, 20 Dec 2007 10:08:36 +0000
parents 11cd0fdfcb4a
children ae7399c268fe
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Dec 20 07:11:48 2007 +0000
+++ b/libswscale/swscale.c	Thu Dec 20 10:08:36 2007 +0000
@@ -1681,7 +1681,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
         {