1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

free that last frame

Originally committed as revision 4095 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Mike Melanson 2005-03-28 20:40:21 +00:00
parent 034eeaa17f
commit 5b225466ea

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;