Always try to parse index chunk, no reason to check for movi_end

Also check return value of parse_index_chunk


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17395 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-01-14 22:47:38 +00:00
parent 636c556f4e
commit 65cbd8d81b
1 changed files with 2 additions and 4 deletions

View File

@ -1748,16 +1748,14 @@ header_end:
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);