Commit a27cd54e authored by michael's avatar michael

allow av_parser_close(NULL)

fixes issue300


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13410 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 848cd3b0
...@@ -214,10 +214,12 @@ int av_parser_change(AVCodecParserContext *s, ...@@ -214,10 +214,12 @@ int av_parser_change(AVCodecParserContext *s,
void av_parser_close(AVCodecParserContext *s) void av_parser_close(AVCodecParserContext *s)
{ {
if(s){
if (s->parser->parser_close) if (s->parser->parser_close)
s->parser->parser_close(s); s->parser->parser_close(s);
av_free(s->priv_data); av_free(s->priv_data);
av_free(s); av_free(s);
}
} }
/*****************************************************/ /*****************************************************/
......
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