Passing the array reference to memset will not get the right number of bytes to
From: Erik Hovland <erik@hovland.org>
set.
---
programs/mythcommflag/ClassicCommDetector.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/mythcommflag/ClassicCommDetector.cpp b/programs/mythcommflag/ClassicCommDetector.cpp
index 81af8b9..6f63de4 100644
a
|
b
|
void ClassicCommDetector::ProcessFrame(VideoFrame *frame, |
789 | 789 | |
790 | 790 | if (commDetectMethod & COMM_DETECT_BLANKS) |
791 | 791 | { |
792 | | memset(&rowMax, 0, sizeof(rowMax)); |
793 | | memset(&colMax, 0, sizeof(colMax)); |
| 792 | memset(rowMax, 0, sizeof(rowMax)); |
| 793 | memset(colMax, 0, sizeof(rowMax)); |
794 | 794 | |
795 | 795 | frameIsBlank = false; |
796 | 796 | } |