diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-17 21:55:17 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-17 21:55:17 +0000 |
commit | e80c0bc832b5c93f0c475dbb209257ca65ea3940 (patch) | |
tree | 3fa417cd68feb12040721dc4691e91a6403ad71a /libmpdemux | |
parent | ac9251d1194dffdaf32ff8d06e771e81f48b8235 (diff) |
more movi_end mess
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4226 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/aviheader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index b9a29b2924..9be2f8f3d8 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -150,7 +150,10 @@ while(1){ } break; } - case ckidAVINEWINDEX: if(index_mode){ + case ckidAVINEWINDEX: + if(demuxer->movi_end>stream_tell(demuxer->stream)) + demuxer->movi_end=stream_tell(demuxer->stream); // fixup movi-end + if(index_mode){ int i; priv->idx_size=size2>>4; mp_msg(MSGT_HEADER,MSGL_V,"Reading INDEX block, %d chunks for %ld frames\n", |