diff h264_parser.c @ 7989:0607ff0877ff libavcodec

ff_parse_close() is not the correct function for H264Context.
author michael
date Fri, 03 Oct 2008 23:08:52 +0000
parents 38d577c3cb60
children a38b31a2ac52
line wrap: on
line diff
--- a/h264_parser.c	Fri Oct 03 13:30:19 2008 +0000
+++ b/h264_parser.c	Fri Oct 03 23:08:52 2008 +0000
@@ -139,12 +139,20 @@
     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,
 };