Originally committed as revision 21100 to svn://svn.ffmpeg.org/ffmpeg/trunk
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",
sizeof(CyuvDecodeContext),
cyuv_decode_init,
NULL,
- NULL,
+ cyuv_decode_end,
cyuv_decode_frame,
CODEC_CAP_DR1,
NULL,
sizeof(CyuvDecodeContext),
cyuv_decode_init,
NULL,
- NULL,
+ cyuv_decode_end,
cyuv_decode_frame,
CODEC_CAP_DR1,
NULL,