changeset 3378:61f410022b10 libavformat

redundant check--
author michael
date Tue, 27 May 2008 21:44:42 +0000
parents 7b34cd9dfe85
children b3827117c786
files utils.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Tue May 27 20:48:27 2008 +0000
+++ b/utils.c	Tue May 27 21:44:42 2008 +0000
@@ -1354,7 +1354,8 @@
         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);