Permalink
Browse files

Fix potential division by zero in VideoOutputXv::PrepareFrameMem()

  • Loading branch information...
1 parent 0a9ac9b commit ceeab1f5c65639a197639bae76bfed4d1becb9f5 @stuartm stuartm committed May 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/videoout_xv.cpp
@@ -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"

0 comments on commit ceeab1f

Please sign in to comment.