diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-04-11 19:03:12 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-04-11 19:03:12 +0000 |
commit | 4d6edcfa5a918770f34bf34d90c82f7a5c8da7d9 (patch) | |
tree | 70a5c4238276f55b7f2168fefb8cd7a9cfe4586c /libmpdemux | |
parent | ee7c19674b396008daf9956ba605c43371970d6c (diff) |
lavf ASF support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12171 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/video.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libmpdemux/video.c b/libmpdemux/video.c index add84303ba..e12bd9c6fe 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -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 || |