[FFmpeg-soc] [soc]: r5249 - concat/libavformat/concatgen.c
gkovacs
subversion at mplayerhq.hu
Mon Aug 24 09:34:16 CEST 2009
Author: gkovacs
Date: Mon Aug 24 09:34:16 2009
New Revision: 5249
Log:
check that child AVFormatContext is non-null before closing
Modified:
concat/libavformat/concatgen.c
Modified: concat/libavformat/concatgen.c
==============================================================================
--- concat/libavformat/concatgen.c Mon Aug 24 09:32:47 2009 (r5248)
+++ concat/libavformat/concatgen.c Mon Aug 24 09:34:16 2009 (r5249)
@@ -158,7 +158,7 @@ int ff_concatgen_read_close(AVFormatCont
AVFormatContext *ic;
for (i = 0; i < ctx->pelist_size; ++i) {
ic = ctx->formatcontext_list[i];
- if (ic->iformat->read_close)
+ if (ic && ic->iformat->read_close)
return ic->iformat->read_close(ic);
}
return 0;
More information about the FFmpeg-soc
mailing list