Skip to content

Commit

Permalink
Remove unused code in MythCommFlag TemplateFinder.
Browse files Browse the repository at this point in the history
The condition could never be true, so just remove it.  Fixes Coverity
700285.
  • Loading branch information
gigem committed Jun 19, 2013
1 parent 0c3f72f commit 76b7dd5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mythtv/programs/mythcommflag/TemplateFinder.cpp
Expand Up @@ -745,12 +745,6 @@ TemplateFinder::TemplateFinder(PGMConverter *pgmc, BorderDetector *bd,

const float fps = player->GetFrameRate();

if (samplesNeeded > UINT_MAX)
{
/* Max value of "scores" data type */
samplesNeeded = UINT_MAX;
}

frameInterval = (int)roundf(sampleTime * fps / samplesNeeded);
endFrame = 0 + frameInterval * samplesNeeded - 1;

Expand Down

0 comments on commit 76b7dd5

Please sign in to comment.