[FFmpeg-cvslog] r21100 - trunk/libavcodec/cyuv.c
daniel
subversion
Fri Jan 8 19:54:52 CET 2010
Author: daniel
Date: Fri Jan 8 19:54:52 2010
New Revision: 21100
Log:
Release cyuv/aura decoder buffer
Modified:
trunk/libavcodec/cyuv.c
Modified: trunk/libavcodec/cyuv.c
==============================================================================
--- trunk/libavcodec/cyuv.c Fri Jan 8 18:52:54 2010 (r21099)
+++ trunk/libavcodec/cyuv.c Fri Jan 8 19:54:52 2010 (r21100)
@@ -167,6 +167,16 @@ static int cyuv_decode_frame(AVCodecCont
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 @@ AVCodec aura_decoder = {
sizeof(CyuvDecodeContext),
cyuv_decode_init,
NULL,
- NULL,
+ cyuv_decode_end,
cyuv_decode_frame,
CODEC_CAP_DR1,
NULL,
@@ -191,7 +201,7 @@ AVCodec cyuv_decoder = {
sizeof(CyuvDecodeContext),
cyuv_decode_init,
NULL,
- NULL,
+ cyuv_decode_end,
cyuv_decode_frame,
CODEC_CAP_DR1,
NULL,
More information about the ffmpeg-cvslog
mailing list