Skip to content

Commit

Permalink
Slightly lower some fast-forward/rewind frame rates.
Browse files Browse the repository at this point in the history
Commit fe59af2 revised the artificial frame rates used for
fast-forward/rewind.  This change slightly lowers the medium- and
high-speed frame rates to make the video a little easier to follow.
Note that this only changes how long the video frames are displayed on
screen.  It does not change the synthesized, ff/rew speeds.

(cherry picked from commit f53f549)
  • Loading branch information
gigem committed Feb 9, 2022
1 parent c216d9c commit 870fd29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -1357,9 +1357,9 @@ bool MythPlayer::UpdateFFRewSkip(float ffrewScale)
if (fabs(m_playSpeed) <= 10.0F)
m_frameInterval = 200000us; // 5.00 fps
else if (fabs(m_playSpeed) <= 20.0F)
m_frameInterval = 160000us; // 6.25 fps
m_frameInterval = 166667us; // 6.00 fps
else
m_frameInterval = 133333us; // 7.50 fps
m_frameInterval = 150000us; // 6.67 fps
m_frameInterval = chronomult(m_frameInterval, m_ffrewScale);
float ffw_fps = fabs(static_cast<double>(m_playSpeed)) * m_videoFrameRate;
float dis_fps = 1000000.0F / m_frameInterval.count();
Expand Down

0 comments on commit 870fd29

Please sign in to comment.