Skip to content
Snippets Groups Projects
Commit bc0219fd authored by Roberto Togni's avatar Roberto Togni
Browse files

Don't memcpy from unallocated memory

Originally committed as revision 2459 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ddaae6a9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment