mirror of
https://github.com/mpv-player/mpv
synced 2025-01-23 16:13:39 +00:00
10l, found by Jan Kritzner <kritzner@informatik.rwth-aachen.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9694 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fb5778a5a5
commit
689a5a7571
@ -391,6 +391,7 @@ int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char**
|
||||
|
||||
// override frame_time for variable/unknown FPS formats:
|
||||
if(!force_fps) switch(demuxer->file_format){
|
||||
case DEMUXER_TYPE_GIF:
|
||||
case DEMUXER_TYPE_REAL:
|
||||
if(d_video->pts>0 && pts1>0 && d_video->pts>pts1)
|
||||
frame_time=d_video->pts-pts1;
|
||||
@ -417,8 +418,6 @@ int video_read_frame(sh_video_t* sh_video,float* frame_time_ptr,unsigned char**
|
||||
// frame_time = 1/25.0;
|
||||
}
|
||||
}
|
||||
case DEMUXER_TYPE_GIF:
|
||||
frame_time=d_video->pts-pts1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user