mirror of
https://github.com/mpv-player/mpv
synced 2025-01-28 10:33:20 +00:00
Try to make fps float -> AVRational conversion work better.
Might make sense to change this once we at least use double for fps everywhere. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25998 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c1a683ad8c
commit
85f638a50e
@ -764,7 +764,8 @@ mux_v->source=sh_video;
|
||||
mux_v->h.dwSampleSize=0; // VBR
|
||||
#ifdef USE_LIBAVCODEC
|
||||
{
|
||||
AVRational q= av_d2q(force_ofps?force_ofps:sh_video->fps*playback_speed, 60000);
|
||||
double fps = force_ofps?force_ofps:sh_video->fps*playback_speed;
|
||||
AVRational q= av_d2q(fps, fps*1001+2);
|
||||
mux_v->h.dwScale= q.den;
|
||||
mux_v->h.dwRate = q.num;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user