Skip to content

Commit

Permalink
Fix reported playback FPS on 32-bit android.
Browse files Browse the repository at this point in the history
Prevent floating point underrun that results in the reported frame
rate being infinite.
  • Loading branch information
linuxdude42 committed Feb 24, 2021
1 parent 0d81a48 commit 5cec1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/jitterometer.cpp
Expand Up @@ -104,7 +104,7 @@ bool Jitterometer::RecordEndTime()
doublemics mean = duration_cast<doublemics>(tottime) / cycles;

if (tottime > 0us)
m_lastFps = static_cast<float>(cycles) / (tottime.count() / 1000000.0F);
m_lastFps = cycles * (1000000.0F / tottime.count());

/* compute the sum of the squares of each deviation from the mean */
double sum_of_squared_deviations =
Expand Down

0 comments on commit 5cec1e8

Please sign in to comment.