more movi_end mess

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4226 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-01-17 21:55:17 +00:00
parent ac9251d119
commit e80c0bc832
1 changed files with 4 additions and 1 deletions

View File

@ -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",