Mercurial > libavcodec.hg
diff parser.c @ 6891:d7051562c2b3 libavcodec
allow av_parser_close(NULL)
fixes issue300
author | michael |
---|---|
date | Mon, 26 May 2008 01:58:47 +0000 |
parents | 23b2a64342f2 |
children | ef70c05f77e8 |
line wrap: on
line diff
--- a/parser.c Mon May 26 01:06:15 2008 +0000 +++ b/parser.c Mon May 26 01:58:47 2008 +0000 @@ -214,10 +214,12 @@ void av_parser_close(AVCodecParserContext *s) { + if(s){ if (s->parser->parser_close) s->parser->parser_close(s); av_free(s->priv_data); av_free(s); + } } /*****************************************************/