Mercurial > libavcodec.hg
changeset 10820:22afa8a8f4d5 libavcodec
Release cyuv/aura decoder buffer
author | daniel |
---|---|
date | Fri, 08 Jan 2010 18:54:52 +0000 |
parents | dc84199b3306 |
children | 030e30b050e4 |
files | cyuv.c |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cyuv.c Fri Jan 08 17:52:54 2010 +0000 +++ b/cyuv.c Fri Jan 08 18:54:52 2010 +0000 @@ -167,6 +167,16 @@ return buf_size; } +static av_cold int cyuv_decode_end(AVCodecContext *avctx) +{ + CyuvDecodeContext *s = avctx->priv_data; + + if (s->frame.data[0]) + avctx->release_buffer(avctx, &s->frame); + + return 0; +} + #if CONFIG_AURA_DECODER AVCodec aura_decoder = { "aura", @@ -175,7 +185,7 @@ sizeof(CyuvDecodeContext), cyuv_decode_init, NULL, - NULL, + cyuv_decode_end, cyuv_decode_frame, CODEC_CAP_DR1, NULL, @@ -191,7 +201,7 @@ sizeof(CyuvDecodeContext), cyuv_decode_init, NULL, - NULL, + cyuv_decode_end, cyuv_decode_frame, CODEC_CAP_DR1, NULL,