提交 5b225466 编写于 作者: M Mike Melanson

free that last frame

Originally committed as revision 4095 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 034eeaa1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册