diff options
author | Roberto Togni <r_togni@tiscali.it> | 2003-10-31 22:56:16 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2003-10-31 22:56:16 +0000 |
commit | 04939fb7871f7818e7c89e2f9d59ad85d973b956 (patch) | |
tree | 59804f90606fc5ae6f7060dd4daa0d92ee9044d4 /libavcodec/msrle.c | |
parent | bc0219fd9583da3e73b0363ca0588d7a53d954c0 (diff) | |
download | ffmpeg-04939fb7871f7818e7c89e2f9d59ad85d973b956.tar.gz |
100l: free previous frame, not current one!
Set reference flag for frames.
Originally committed as revision 2460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/msrle.c')
-rw-r--r-- | libavcodec/msrle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index f0564a9ca8..4d8ceaa8b7 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -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; |