[Mplayer-cvslog] CVS: main/libmpdemux aviheader.c,1.45,1.46
Arpi of Ize
arpi at mplayerhq.hu
Sun Jun 2 23:10:44 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7115
Modified Files:
aviheader.c
Log Message:
playback of 'being downloaded' files
Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviheader.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- aviheader.c 20 May 2002 03:25:24 -0000 1.45
+++ aviheader.c 2 Jun 2002 21:10:41 -0000 1.46
@@ -62,7 +62,7 @@
if(!demuxer->movi_start) demuxer->movi_start=stream_tell(demuxer->stream);
demuxer->movi_end=stream_tell(demuxer->stream)+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(demuxer->stream->end_pos>demuxer->movi_end) demuxer->movi_end=demuxer->stream->end_pos;
if(index_mode==-2 || index_mode==2 || index_mode==0)
break; // reading from non-seekable source (stdin) or forced index or no index forced
len=(len+1)&(~1);
@@ -212,6 +212,7 @@
break;
case mmioFOURCC('D', 'I', 'V', 'X'):
case mmioFOURCC('d', 'i', 'v', 'x'):
+ case mmioFOURCC('D', 'X', '5', '0'):
idxfix_divx=2; // we can fix keyframes only for divx coded files!
mp_msg(MSGT_HEADER,MSGL_V,"Regenerating keyframe table for DIVX 4 video\n");
break;
More information about the MPlayer-cvslog
mailing list