# HG changeset patch # User benoit # Date 1198145316 0 # Node ID 17098467fc9b03917aea7b00857a6e0aaf7e46aa # Parent 11cd0fdfcb4a36f3d5fda50150e7f35e515ced53 Make sure strides have positive values before converting. Patch by Peter Schlaile: peter schlaile de diff -r 11cd0fdfcb4a -r 17098467fc9b libswscale/swscale.c --- 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 {