redundant check--
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 27 May 2008 21:44:42 +0000 (21:44 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 27 May 2008 21:44:42 +0000 (21:44 +0000)
Originally committed as revision 13474 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index ea6dd0d..8dddfde 100644 (file)
@@ -1354,7 +1354,8 @@ static int av_seek_frame_generic(AVFormatContext *s,
         int i;
         AVPacket pkt;
 
-        if(st->index_entries && st->nb_index_entries){
+        if(st->nb_index_entries){
+            assert(st->index_entries);
             ie= &st->index_entries[st->nb_index_entries-1];
             url_fseek(s->pb, ie->pos, SEEK_SET);
             av_update_cur_dts(s, st, ie->timestamp);