# HG changeset patch # User daniel # Date 1262976892 0 # Node ID 22afa8a8f4d577e4e3d838906048c58c1819fb9f # Parent dc84199b330680cc8efcb2c4ee6b56023994d176 Release cyuv/aura decoder buffer diff -r dc84199b3306 -r 22afa8a8f4d5 cyuv.c --- 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,