Commit 74d96dd0 authored by rtognimp's avatar rtognimp

100l: free previous frame, not current one!

Set reference flag for frames.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2460 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ed983ff5
......@@ -171,6 +171,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
s->buf = buf;
s->size = buf_size;
s->frame.reference = 1;
if (avctx->get_buffer(avctx, &s->frame)) {
printf (" MS RLE: get_buffer() failed\n");
return -1;
......@@ -183,8 +184,8 @@ static int msrle_decode_frame(AVCodecContext *avctx,
msrle_decode_pal8(s);
if (s->frame.data[0])
avctx->release_buffer(avctx, &s->frame);
if (s->prev_frame.data[0])
avctx->release_buffer(avctx, &s->prev_frame);
/* shuffle frames */
s->prev_frame = s->frame;
......
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