Mercurial > mplayer.hg
changeset 17394:d44f30816921
Always try to parse index chunk, no reason to check for movi_end
Also check return value of parse_index_chunk
author | reimar |
---|---|
date | Sat, 14 Jan 2006 22:47:38 +0000 |
parents | 3c2cd58df089 |
children | 0bc15a27a26b |
files | libmpdemux/demux_real.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_real.c Sat Jan 14 22:21:34 2006 +0000 +++ b/libmpdemux/demux_real.c Sat Jan 14 22:47:38 2006 +0000 @@ -1748,16 +1748,14 @@ switch (index_mode){ case -1: // untouched - if (priv->index_chunk_offset && (priv->index_chunk_offset < demuxer->movi_end)) + if (priv->index_chunk_offset && parse_index_chunk(demuxer)) { - parse_index_chunk(demuxer); demuxer->seekable = 1; } break; case 1: // use (generate index) - if (priv->index_chunk_offset && (priv->index_chunk_offset < demuxer->movi_end)) + if (priv->index_chunk_offset && parse_index_chunk(demuxer)) { - parse_index_chunk(demuxer); demuxer->seekable = 1; } else { generate_index(demuxer);