mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
100l: free previous frame, not current one!
Set reference flag for frames. Originally committed as revision 2460 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bc0219fd95
commit
04939fb787
@ -171,6 +171,7 @@ static int msrle_decode_frame(AVCodecContext *avctx,
|
|||||||
s->buf = buf;
|
s->buf = buf;
|
||||||
s->size = buf_size;
|
s->size = buf_size;
|
||||||
|
|
||||||
|
s->frame.reference = 1;
|
||||||
if (avctx->get_buffer(avctx, &s->frame)) {
|
if (avctx->get_buffer(avctx, &s->frame)) {
|
||||||
printf (" MS RLE: get_buffer() failed\n");
|
printf (" MS RLE: get_buffer() failed\n");
|
||||||
return -1;
|
return -1;
|
||||||
@ -183,8 +184,8 @@ static int msrle_decode_frame(AVCodecContext *avctx,
|
|||||||
|
|
||||||
msrle_decode_pal8(s);
|
msrle_decode_pal8(s);
|
||||||
|
|
||||||
if (s->frame.data[0])
|
if (s->prev_frame.data[0])
|
||||||
avctx->release_buffer(avctx, &s->frame);
|
avctx->release_buffer(avctx, &s->prev_frame);
|
||||||
|
|
||||||
/* shuffle frames */
|
/* shuffle frames */
|
||||||
s->prev_frame = s->frame;
|
s->prev_frame = s->frame;
|
||||||
|
Loading…
Reference in New Issue
Block a user