diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-27 21:44:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-27 21:44:42 +0000 |
commit | 5e5c9086919952af197044a0bdd99bfb1cfec401 (patch) | |
tree | 00bf429b8f9a1ecb32a8e4c90050f482d2abe289 /libavformat/utils.c | |
parent | c1815c3700241f69ba4d0387f57b057dd0d5b427 (diff) | |
download | ffmpeg-streaming-5e5c9086919952af197044a0bdd99bfb1cfec401.zip ffmpeg-streaming-5e5c9086919952af197044a0bdd99bfb1cfec401.tar.gz |
redundant check--
Originally committed as revision 13474 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index ea6dd0d..8dddfde 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -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); |