[Ffmpeg-cvslog] r7796 - trunk/libavcodec/bmp.c
takis
subversion
Thu Feb 1 10:48:09 CET 2007
Author: takis
Date: Thu Feb 1 10:48:09 2007
New Revision: 7796
Modified:
trunk/libavcodec/bmp.c
Log:
Add decode_end method to bmp decoder. Patch by Michel Bardiaux,
mbardiaux mediaxim dot be.
Modified: trunk/libavcodec/bmp.c
==============================================================================
--- trunk/libavcodec/bmp.c (original)
+++ trunk/libavcodec/bmp.c Thu Feb 1 10:48:09 2007
@@ -232,6 +232,16 @@
return buf_size;
}
+static int bmp_decode_end(AVCodecContext *avctx)
+{
+ BMPContext* c = avctx->priv_data;
+
+ if (c->picture.data[0])
+ avctx->release_buffer(avctx, &c->picture);
+
+ return 0;
+}
+
AVCodec bmp_decoder = {
"bmp",
CODEC_TYPE_VIDEO,
@@ -239,6 +249,6 @@
sizeof(BMPContext),
bmp_decode_init,
NULL,
- NULL,
+ bmp_decode_end,
bmp_decode_frame
};
More information about the ffmpeg-cvslog
mailing list