Mercurial > libavcodec.hg
changeset 6891:d7051562c2b3 libavcodec
allow av_parser_close(NULL)
fixes issue300
author | michael |
---|---|
date | Mon, 26 May 2008 01:58:47 +0000 |
parents | 5ddf098691d3 |
children | ef70c05f77e8 |
files | parser.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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); + } } /*****************************************************/