Mercurial > libavcodec.hg
changeset 2586:00d9abc5f76f libavcodec
free that last frame
author | melanson |
---|---|
date | Mon, 28 Mar 2005 20:40:21 +0000 |
parents | 1ef8fab234c8 |
children | 1e8fbc2b64e0 |
files | qpeg.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/qpeg.c Mon Mar 28 18:05:25 2005 +0000 +++ b/qpeg.c Mon Mar 28 20:40:21 2005 +0000 @@ -280,6 +280,10 @@ 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;