diff options
author | Peter Schlaile <peter@schlaile.de> | 2007-12-20 10:08:36 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-12-20 10:08:36 +0000 |
commit | 5efaf00029489202b0d42cfedb484ecfc925a639 (patch) | |
tree | 9ab037d91a8ba6f3653e68bb9a6d5103aaab9fe9 /libswscale/swscale.c | |
parent | ba66ae94a08a3d2c3115bd59cec5a0f37e25e191 (diff) | |
download | ffmpeg-5efaf00029489202b0d42cfedb484ecfc925a639.tar.gz |
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
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 8f3670ef18..00d90a67e4 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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 { |