projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba66ae9
)
Make sure strides have positive values before converting.
author
Peter Schlaile
<peter@schlaile.de>
Thu, 20 Dec 2007 10:08:36 +0000
(10:08 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Thu, 20 Dec 2007 10:08:36 +0000
(10:08 +0000)
Patch by Peter Schlaile: peter schlaile de
Originally committed as revision 25467 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/swscale.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale.c
b/libswscale/swscale.c
index
8f3670e
..
00d90a6
100644
(file)
--- 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
{