mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 20:32:13 +00:00
Avoid crash on planarCopy to a destination without alpha.
Makes regression tests run again, though the results are still wrong. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29018 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
664d12c7be
commit
a0a1ec417c
@ -2117,7 +2117,8 @@ static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
|
||||
int y= (plane==0 || plane==3) ? srcSliceY: -((-srcSliceY)>>c->chrDstVSubSample);
|
||||
int height= (plane==0 || plane==3) ? srcSliceH: -((-srcSliceH)>>c->chrDstVSubSample);
|
||||
|
||||
if (dst[plane] && !src[plane])
|
||||
if (!dst[plane]) continue;
|
||||
if (!src[plane])
|
||||
fillPlane(dst[plane], dstStride[plane], length, height, y, (plane==3) ? 255 : 128);
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user