提交 8e88145d 编写于 作者: C Carl Eugen Hoyos

Release buffers after encoding svq1.

Fixes ticket #820.
上级 e5de9289
......@@ -563,6 +563,10 @@ static av_cold int svq1_encode_end(AVCodecContext *avctx)
av_freep(&s->motion_val8[i]);
av_freep(&s->motion_val16[i]);
}
if(s->current_picture.data[0])
avctx->release_buffer(avctx, &s->current_picture);
if(s->last_picture.data[0])
avctx->release_buffer(avctx, &s->last_picture);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册