Skip to content

Commit

Permalink
Fix potential division by zero in VideoOutputXv::PrepareFrameMem()
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed May 10, 2012
1 parent 0a9ac9b commit ceeab1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_xv.cpp
Expand Up @@ -1404,7 +1404,7 @@ void VideoOutputXv::PrepareFrameMem(VideoFrame *buffer, FrameScanType /*scan*/)

if (non_xv_fps < 25)
{
non_xv_show_frame = 120 / non_xv_frames_shown + 1;
non_xv_show_frame = 120 / (non_xv_frames_shown + 1);
LOG(VB_GENERAL, LOG_ERR, LOC +
QString("\n***\n"
"* Your system is not capable of displaying the\n"
Expand Down

0 comments on commit ceeab1f

Please sign in to comment.