[Mplayer-cvslog] CVS: main aviheader.c,1.7,1.8
GEREOFFY
arpi_esp at users.sourceforge.net
Sun Apr 22 03:30:01 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv14261
Modified Files:
aviheader.c
Log Message:
small fix of DivFix
Index: aviheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/aviheader.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** aviheader.c 2001/04/22 01:04:18 1.7
--- aviheader.c 2001/04/22 01:29:59 1.8
***************
*** 122,125 ****
--- 122,126 ----
int id,len,skip;
AVIINDEXENTRY* idx;
+ unsigned char c;
demuxer->filepos=stream_tell(demuxer->stream);
if(demuxer->filepos>=avi_header.movi_end) break;
***************
*** 141,154 ****
idx->dwChunkOffset=demuxer->filepos;
idx->dwChunkLength=len;
// Fix keyframes for DivX files:
if(idxfix_divx)
if(avi_stream_id(id)==idxfix_videostream){
! unsigned char c=stream_read_char(demuxer->stream);
! // --skip;
! if(!(c&0x40)) idx->dwFlags=0;
}
! if(verbose>=2) printf("0x%08X 0x%08X %.4s %X\n",demuxer->filepos,id,&id,idx->dwFlags);
#if 0
{ unsigned char tmp[64];
--- 142,155 ----
idx->dwChunkOffset=demuxer->filepos;
idx->dwChunkLength=len;
+
+ c=stream_read_char(demuxer->stream);
// Fix keyframes for DivX files:
if(idxfix_divx)
if(avi_stream_id(id)==idxfix_videostream){
! if(c&0x40) idx->dwFlags=0;
}
! if(verbose>=2) printf("%08X %08X %.4s %02X %X\n",demuxer->filepos,id,&id,c,idx->dwFlags);
#if 0
{ unsigned char tmp[64];
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list