[FFmpeg-cvslog] r15537 - trunk/libavcodec/h264_parser.c

michael subversion
Sat Oct 4 01:08:52 CEST 2008


Author: michael
Date: Sat Oct  4 01:08:52 2008
New Revision: 15537

Log:
ff_parse_close() is not the correct function for H264Context.


Modified:
   trunk/libavcodec/h264_parser.c

Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c	(original)
+++ trunk/libavcodec/h264_parser.c	Sat Oct  4 01:08:52 2008
@@ -139,12 +139,20 @@ static int h264_split(AVCodecContext *av
     return 0;
 }
 
+static close(AVCodecParserContext *s)
+{
+    H264Context *h = s->priv_data;
+    ParseContext *pc = &h->s.parse_context;
+
+    av_free(pc->buffer);
+}
+
 
 AVCodecParser h264_parser = {
     { CODEC_ID_H264 },
     sizeof(H264Context),
     NULL,
     h264_parse,
-    ff_parse_close,
+    close,
     h264_split,
 };




More information about the ffmpeg-cvslog mailing list