Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ceeab1f5c65639a197639bae76bfed4d1becb9f5 1 parent 0a9ac9b
@stuartm stuartm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mythtv/libs/libmythtv/videoout_xv.cpp
View
2  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"
Please sign in to comment.
Something went wrong with that request. Please try again.