summaryrefslogtreecommitdiffstats
path: root/libmpdemux/video.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-26 15:49:10 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-26 15:49:10 +0000
commit689a5a7571bd9ea700b786799352f503ce8220cf (patch)
tree9f6305e241d5b235b3418a76516a3d9f5c69898f /libmpdemux/video.c
parentfb5778a5a554b944b08414d43df6bab35852d91d (diff)
downloadmpv-689a5a7571bd9ea700b786799352f503ce8220cf.tar.bz2
mpv-689a5a7571bd9ea700b786799352f503ce8220cf.tar.xz
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
Diffstat (limited to 'libmpdemux/video.c')
-rw-r--r--libmpdemux/video.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmpdemux/video.c b/libmpdemux/video.c
index 5fee28e57b..fcf6e6c220 100644
--- a/libmpdemux/video.c
+++ b/libmpdemux/video.c
@@ -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,9 +418,7 @@ 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;
+ break;
}
if(demuxer->file_format==DEMUXER_TYPE_MPEG_PS ||