1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Make sure strides have positive values before converting.

Patch by Peter Schlaile: peter schlaile de

Originally committed as revision 25467 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Peter Schlaile 2007-12-20 10:08:36 +00:00 committed by Benoit Fouet
parent ba66ae94a0
commit 5efaf00029

View File

@ -1681,7 +1681,7 @@ static int rgb2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int sr
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
{