Originally committed as revision 20228 to svn://svn.ffmpeg.org/ffmpeg/trunk
static av_cold int decode_close(AVCodecContext *avctx)
{
+ AVFrame *pic = avctx->coded_frame;
+ if (pic->data[0])
+ avctx->release_buffer(avctx, pic);
av_freep(&avctx->coded_frame);
return 0;
return avpkt->size;
}
+static av_cold int decode_close(AVCodecContext *avctx)
+{
+ AVFrame *pic = avctx->coded_frame;
+ if (pic->data[0])
+ avctx->release_buffer(avctx, pic);
+ av_freep(&avctx->coded_frame);
+
+ return 0;
+}
+
AVCodec v210x_decoder = {
"v210x",
CODEC_TYPE_VIDEO,
0,
decode_init,
NULL,
- NULL,
+ decode_close,
decode_frame,
CODEC_CAP_DR1,
};