Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix initialization of histograms

Based on a patch from Gary Buhrmaster <gary.buhrmaster@gmail.com>

Fixes #10478
  • Loading branch information...
commit 83759acfe5d01df3a8b1e718ba81559027ac1102 1 parent 778d811
@Beirdo Beirdo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mythtv/programs/mythcommflag/ClassicCommDetector.cpp
View
2  mythtv/programs/mythcommflag/ClassicCommDetector.cpp
@@ -2042,7 +2042,7 @@ void ClassicCommDetector::BuildSceneChangeCommList(void)
sceneCommBreakMap.clear();
- memset(sc_histogram, 0, sizeof(sc_histogram));
+ memset(sc_histogram, 0, sizeof((seconds+1)*sizeof(int)));
for (uint64_t f = 1; f <= framesProcessed; f++)
{
if (sceneMap.contains(f))
Please sign in to comment.
Something went wrong with that request. Please try again.