[Mplayer-cvslog] CVS: main demux_avi.c,1.26,1.27
Arpi of Ize
arpi at mplayer.dev.hu
Wed Aug 29 00:24:26 CEST 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv5951
Modified Files:
demux_avi.c
Log Message:
sig11 for abs seek in bad avi file fixed
Index: demux_avi.c
===================================================================
RCS file: /cvsroot/mplayer/main/demux_avi.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- demux_avi.c 22 Aug 2001 19:40:46 -0000 1.26
+++ demux_avi.c 28 Aug 2001 22:24:02 -0000 1.27
@@ -497,8 +497,8 @@
int total=sh_video->video.dwLength;
if(total<=1){
// bad video header, try to get it from audio
- total=sh_video->fps*sh_audio->audio.dwLength/sh_audio->wf->nAvgBytesPerSec;
- if(total<1){
+ if(sh_audio) total=sh_video->fps*sh_audio->audio.dwLength/sh_audio->wf->nAvgBytesPerSec;
+ if(total<=1){
mp_msg(MSGT_SEEK,MSGL_WARN,"Couldn't determine number of frames (for absoulte seek) \n");
total=0;
}
More information about the MPlayer-cvslog
mailing list