summaryrefslogtreecommitdiff
path: root/libavcodec/qpeg.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2005-03-28 20:40:21 +0000
committerMike Melanson <mike@multimedia.cx>2005-03-28 20:40:21 +0000
commit5b225466ea808bc5e677150b2e2cdbf5a8f88ce6 (patch)
tree96075a47105655bb9805560622fcbdcf85ee826b /libavcodec/qpeg.c
parent034eeaa17f2541663f12666008109c267620f4b2 (diff)
free that last frame
Originally committed as revision 4095 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/qpeg.c')
-rw-r--r--libavcodec/qpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/qpeg.c b/libavcodec/qpeg.c
index fa945858c2..a2d7e4acc0 100644
--- a/libavcodec/qpeg.c
+++ b/libavcodec/qpeg.c
@@ -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;