mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 04:44:32 +01:00
Make sure strides have positive values before converting.
Patch by Peter Schlaile: peter schlaile de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25467 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
787801f7a5
commit
f2281fa06a
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user