mirror of https://github.com/mpv-player/mpv
sig11 for abs seek in bad avi file fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1738 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f96752a528
commit
2bdb9a4e25
|
@ -497,8 +497,8 @@ void demux_seek_avi(demuxer_t *demuxer,float rel_seek_secs,int flags){
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue