[FFmpeg-cvslog] r13483 - trunk/libavformat/avidec.c

michael subversion
Wed May 28 02:10:34 CEST 2008


Author: michael
Date: Wed May 28 02:10:34 2008
New Revision: 13483

Log:
Fixes NULL pointer dereference CID66


Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Wed May 28 02:10:34 2008
@@ -650,6 +650,9 @@ static int avi_read_packet(AVFormatConte
                 best_stream_index= i;
             }
         }
+        if(!best_st)
+            return -1;
+
         best_ast = best_st->priv_data;
         best_ts= av_rescale(best_ts, best_st->time_base.den, AV_TIME_BASE * (int64_t)best_st->time_base.num); //FIXME a little ugly
         if(best_ast->remaining)




More information about the ffmpeg-cvslog mailing list