[SCM] libav/experimental: allow av_parser_close(NULL) fixes issue300
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:21:52 UTC 2013
The following commit has been merged in the experimental branch:
commit 99c1c3887d67b73e739574e745a36d29d818339d
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Mon May 26 01:58:47 2008 +0000
allow av_parser_close(NULL)
fixes issue300
Originally committed as revision 13410 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 20f0031..a1e5c00 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -214,10 +214,12 @@ int av_parser_change(AVCodecParserContext *s,
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);
+ }
}
/*****************************************************/
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list