Mercurial > libavformat.hg
diff utils.c @ 3378:61f410022b10 libavformat
redundant check--
author | michael |
---|---|
date | Tue, 27 May 2008 21:44:42 +0000 |
parents | 7db242158d51 |
children | d31673961099 |
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);