mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-11 03:32:39 +00: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,6 +177,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* grossly inefficient, but...oh well */
|
/* grossly inefficient, but...oh well */
|
||||||
|
if (s->prev_frame.data[0] != NULL)
|
||||||
memcpy(s->frame.data[0], s->prev_frame.data[0],
|
memcpy(s->frame.data[0], s->prev_frame.data[0],
|
||||||
s->frame.linesize[0] * s->avctx->height);
|
s->frame.linesize[0] * s->avctx->height);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user