changeset 1737:00505a8fa2b4

sig11 for abs seek in bad avi file fixed
author arpi
date Tue, 28 Aug 2001 22:24:02 +0000
parents 1a8e6e3bee3d
children 888b395b277c
files demux_avi.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/demux_avi.c	Tue Aug 28 21:47:20 2001 +0000
+++ b/demux_avi.c	Tue Aug 28 22:24:02 2001 +0000
@@ -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;
 	    }