mirror of https://github.com/mpv-player/mpv
workaround for broken 'muvi' chunks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4155 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
83f9d25cbe
commit
af094f7fbc
|
@ -50,9 +50,10 @@ while(1){
|
|||
mp_msg(MSGT_HEADER,MSGL_DBG2,"LIST %.4s len=%d\n",(char *) &id,len);
|
||||
if(id==listtypeAVIMOVIE){
|
||||
// found MOVI header
|
||||
demuxer->movi_start=stream_tell(demuxer->stream);
|
||||
if(!demuxer->movi_start) demuxer->movi_start=stream_tell(demuxer->stream);
|
||||
demuxer->movi_end=demuxer->movi_start+len;
|
||||
mp_msg(MSGT_HEADER,MSGL_V,"Found movie at 0x%X - 0x%X\n",(int)demuxer->movi_start,(int)demuxer->movi_end);
|
||||
if(demuxer->stream->end_pos) demuxer->movi_end=demuxer->stream->end_pos;
|
||||
if(index_mode==-2) break; // reading from non-seekable source (stdin)
|
||||
len=(len+1)&(~1);
|
||||
stream_skip(demuxer->stream,len);
|
||||
|
|
Loading…
Reference in New Issue