# HG changeset patch # User michael # Date 1223075332 0 # Node ID 0607ff0877ff80c2d7fe5fef71ebdaf2d7be0a78 # Parent a7dfe657968de971051aa1453e3ccb07089ebdc1 ff_parse_close() is not the correct function for H264Context. diff -r a7dfe657968d -r 0607ff0877ff h264_parser.c --- 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, };