mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00:00
lavf ASF support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12171 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ee7c19674b
commit
4d6edcfa5a
@ -482,6 +482,15 @@ int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char**
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DEMUXER_TYPE_LAVF:
|
||||
if((int)sh_video->fps==1000 || (int)sh_video->fps<=1){
|
||||
float next_pts = ds_get_next_pts(d_video);
|
||||
float d= next_pts > 0 ? next_pts - d_video->pts : d_video->pts-pts1;
|
||||
if(d>=0){
|
||||
frame_time = d;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if(demuxer->file_format==DEMUXER_TYPE_MPEG_PS ||
|
||||
|
Loading…
Reference in New Issue
Block a user