[FFmpeg-cvslog] r25240 - trunk/libavformat/mov.c

bcoudurier subversion
Tue Sep 28 02:33:21 CEST 2010


Author: bcoudurier
Date: Tue Sep 28 02:33:21 2010
New Revision: 25240

Log:
In mov demuxer, check that nb_streams is valid before using it in read_dac3

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Tue Sep 28 00:17:58 2010	(r25239)
+++ trunk/libavformat/mov.c	Tue Sep 28 02:33:21 2010	(r25240)
@@ -567,6 +567,8 @@ static int mov_read_dac3(MOVContext *c, 
     AVStream *st;
     int ac3info, acmod, lfeon;
 
+    if (c->fc->nb_streams < 1)
+        return 0;
     st = c->fc->streams[c->fc->nb_streams-1];
 
     ac3info = get_be24(pb);



More information about the ffmpeg-cvslog mailing list