[FFmpeg-cvslog] r13410 - trunk/libavcodec/parser.c

michael subversion
Mon May 26 03:58:48 CEST 2008


Author: michael
Date: Mon May 26 03:58:47 2008
New Revision: 13410

Log:
allow av_parser_close(NULL)
fixes issue300


Modified:
   trunk/libavcodec/parser.c

Modified: trunk/libavcodec/parser.c
==============================================================================
--- trunk/libavcodec/parser.c	(original)
+++ trunk/libavcodec/parser.c	Mon May 26 03:58:47 2008
@@ -214,10 +214,12 @@ int av_parser_change(AVCodecParserContex
 
 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);
+    }
 }
 
 /*****************************************************/




More information about the ffmpeg-cvslog mailing list