Mercurial > libavcodec.hg
diff v210dec.c @ 10396:2bb3882075b6 libavcodec
Call release_buffer on close for v210dec and v210x
author | reimar |
---|---|
date | Tue, 13 Oct 2009 18:31:22 +0000 |
parents | a48c43551737 |
children | d7ed9dcc78e3 |
line wrap: on
line diff
--- a/v210dec.c Tue Oct 13 18:28:37 2009 +0000 +++ b/v210dec.c Tue Oct 13 18:31:22 2009 +0000 @@ -114,6 +114,9 @@ static av_cold int decode_close(AVCodecContext *avctx) { + AVFrame *pic = avctx->coded_frame; + if (pic->data[0]) + avctx->release_buffer(avctx, pic); av_freep(&avctx->coded_frame); return 0;