summaryrefslogtreecommitdiff
path: root/libavcodec/h264_parser.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-10-03 23:08:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-10-03 23:08:52 +0000
commit3ee4f5e4fae8c468d316f3b3a0fbbb42c730e600 (patch)
tree34dc8b76d0d07e85cb0f58aff2debfbdc65057c9 /libavcodec/h264_parser.c
parentf06188d5ee777128e7e66ca2aee0c749e3021828 (diff)
ff_parse_close() is not the correct function for H264Context.
Originally committed as revision 15537 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r--libavcodec/h264_parser.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c
index 73b156964c..bc3a2c021d 100644
--- a/libavcodec/h264_parser.c
+++ b/libavcodec/h264_parser.c
@@ -139,12 +139,20 @@ static int h264_split(AVCodecContext *avctx,
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,
};