comparison demux_avi.c @ 1737:00505a8fa2b4

sig11 for abs seek in bad avi file fixed
author arpi
date Tue, 28 Aug 2001 22:24:02 +0000
parents 09284c9c2b49
children 5216f108cb4f
comparison
equal deleted inserted replaced
1736:1a8e6e3bee3d 1737:00505a8fa2b4
495 if(flags&2){ 495 if(flags&2){
496 // float 0..1 496 // float 0..1
497 int total=sh_video->video.dwLength; 497 int total=sh_video->video.dwLength;
498 if(total<=1){ 498 if(total<=1){
499 // bad video header, try to get it from audio 499 // bad video header, try to get it from audio
500 total=sh_video->fps*sh_audio->audio.dwLength/sh_audio->wf->nAvgBytesPerSec; 500 if(sh_audio) total=sh_video->fps*sh_audio->audio.dwLength/sh_audio->wf->nAvgBytesPerSec;
501 if(total<1){ 501 if(total<=1){
502 mp_msg(MSGT_SEEK,MSGL_WARN,"Couldn't determine number of frames (for absoulte seek) \n"); 502 mp_msg(MSGT_SEEK,MSGL_WARN,"Couldn't determine number of frames (for absoulte seek) \n");
503 total=0; 503 total=0;
504 } 504 }
505 } 505 }
506 rel_seek_frames=rel_seek_secs*total; 506 rel_seek_frames=rel_seek_secs*total;