diff --git a/mythtv/programs/mythcommflag/TemplateFinder.cpp b/mythtv/programs/mythcommflag/TemplateFinder.cpp index 44f99101d13..b4f96fc19de 100644 --- a/mythtv/programs/mythcommflag/TemplateFinder.cpp +++ b/mythtv/programs/mythcommflag/TemplateFinder.cpp @@ -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;