Ticket #5303: programs_mythcommflag_ClassicCommDetector.cpp-do-memset-correctly-ticket-5303.patch

File programs_mythcommflag_ClassicCommDetector.cpp-do-memset-correctly-ticket-5303.patch, 834 bytes (added by Erik Hovland <erik@…>, 16 years ago)

reverts the sizeof back to original (it was/is correct), keeps referencing removal

  • programs/mythcommflag/ClassicCommDetector.cpp

    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, 
    789789
    790790    if (commDetectMethod & COMM_DETECT_BLANKS)
    791791    {
    792         memset(&rowMax, 0, sizeof(rowMax));
    793         memset(&colMax, 0, sizeof(colMax));
     792        memset(rowMax, 0, sizeof(rowMax));
     793        memset(colMax, 0, sizeof(rowMax));
    794794
    795795        frameIsBlank = false;
    796796    }