Browse Source

free that last frame

Originally committed as revision 4095 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Mike Melanson 21 years ago
parent
commit
5b225466ea
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/qpeg.c

+ 4
- 0
libavcodec/qpeg.c View File

@@ -280,6 +280,10 @@ static int decode_init(AVCodecContext *avctx){

static int decode_end(AVCodecContext *avctx){
QpegContext * const a = avctx->priv_data;
AVFrame * const p= (AVFrame*)&a->pic;
if(p->data[0])
avctx->release_buffer(avctx, p);

av_free(a->refdata);
return 0;


Loading…
Cancel
Save