Commit ed983ff5 authored by rtognimp's avatar rtognimp

Don't memcpy from unallocated memory


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2459 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent facb2d8a
...@@ -177,7 +177,8 @@ static int msrle_decode_frame(AVCodecContext *avctx, ...@@ -177,7 +177,8 @@ static int msrle_decode_frame(AVCodecContext *avctx,
} }
/* grossly inefficient, but...oh well */ /* 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); s->frame.linesize[0] * s->avctx->height);
msrle_decode_pal8(s); msrle_decode_pal8(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment