changeset 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 a7dfe657968d
children 58955234a2bd
files h264_parser.c
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
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,
 };