mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-20 08:15:06 +02:00
Don't memcpy from unallocated memory
Originally committed as revision 2459 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ddaae6a9d1
commit
bc0219fd95
@ -177,7 +177,8 @@ static int msrle_decode_frame(AVCodecContext *avctx,
|
||||
}
|
||||
|
||||
/* grossly inefficient, but...oh well */
|
||||
memcpy(s->frame.data[0], s->prev_frame.data[0],
|
||||
if (s->prev_frame.data[0] != NULL)
|
||||
memcpy(s->frame.data[0], s->prev_frame.data[0],
|
||||
s->frame.linesize[0] * s->avctx->height);
|
||||
|
||||
msrle_decode_pal8(s);
|
||||
|
Loading…
Reference in New Issue
Block a user