diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-08 01:19:13 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-08 01:19:13 +0000 |
commit | ec7b288ed533d7cebce6baa00a4f0d13633c2f62 (patch) | |
tree | b13636985a920251c12e14850a2d57192f991d55 /libmpdemux | |
parent | e9aeec984930a9fa8f0222a58e365efe30a878db (diff) |
10l 1000 fps fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17557 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_lavf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index c5a6556c20..e2aaa64de7 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -273,8 +273,8 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){ sh_video->video.dwScale= codec->frame_rate_base; #endif } - sh_video->fps=(float)sh_video->video.dwRate/(float)sh_video->video.dwScale; - sh_video->frametime=(float)sh_video->video.dwScale/(float)sh_video->video.dwRate; + sh_video->fps=av_q2d(st->r_frame_rate); + sh_video->frametime=1/av_q2d(st->r_frame_rate); sh_video->format = bih->biCompression; sh_video->aspect= codec->width * codec->sample_aspect_ratio.num / (float)(codec->height * codec->sample_aspect_ratio.den); |