mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
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:
parent
636c556f4e
commit
65cbd8d81b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user