allow av_parser_close(NULL)
fixes issue300 Originally committed as revision 13410 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -214,11 +214,13 @@ 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);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************/
|
/*****************************************************/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user