From af094f7fbc446f7f6d3022382e4ddd1771232019 Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 14 Jan 2002 18:30:28 +0000 Subject: workaround for broken 'muvi' chunks git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4155 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/aviheader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmpdemux') diff --git a/libmpdemux/aviheader.c b/libmpdemux/aviheader.c index 0751723f4d..b9a29b2924 100644 --- a/libmpdemux/aviheader.c +++ b/libmpdemux/aviheader.c @@ -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); -- cgit v1.2.3