Commit 2a6f4726 authored by michael's avatar michael

ff_parse_close() is not the correct function for H264Context.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15537 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c26eaa1
...@@ -139,12 +139,20 @@ static int h264_split(AVCodecContext *avctx, ...@@ -139,12 +139,20 @@ static int h264_split(AVCodecContext *avctx,
return 0; return 0;
} }
static close(AVCodecParserContext *s)
{
H264Context *h = s->priv_data;
ParseContext *pc = &h->s.parse_context;
av_free(pc->buffer);
}
AVCodecParser h264_parser = { AVCodecParser h264_parser = {
{ CODEC_ID_H264 }, { CODEC_ID_H264 },
sizeof(H264Context), sizeof(H264Context),
NULL, NULL,
h264_parse, h264_parse,
ff_parse_close, close,
h264_split, h264_split,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment