Commit c1d60538 authored by daniel's avatar daniel

Release cyuv/aura decoder buffer



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21100 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b773620f
...@@ -167,6 +167,16 @@ static int cyuv_decode_frame(AVCodecContext *avctx, ...@@ -167,6 +167,16 @@ static int cyuv_decode_frame(AVCodecContext *avctx,
return buf_size; 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 #if CONFIG_AURA_DECODER
AVCodec aura_decoder = { AVCodec aura_decoder = {
"aura", "aura",
...@@ -175,7 +185,7 @@ AVCodec aura_decoder = { ...@@ -175,7 +185,7 @@ AVCodec aura_decoder = {
sizeof(CyuvDecodeContext), sizeof(CyuvDecodeContext),
cyuv_decode_init, cyuv_decode_init,
NULL, NULL,
NULL, cyuv_decode_end,
cyuv_decode_frame, cyuv_decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
NULL, NULL,
...@@ -191,7 +201,7 @@ AVCodec cyuv_decoder = { ...@@ -191,7 +201,7 @@ AVCodec cyuv_decoder = {
sizeof(CyuvDecodeContext), sizeof(CyuvDecodeContext),
cyuv_decode_init, cyuv_decode_init,
NULL, NULL,
NULL, cyuv_decode_end,
cyuv_decode_frame, cyuv_decode_frame,
CODEC_CAP_DR1, CODEC_CAP_DR1,
NULL, NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment