Ticket #4886: libs_libmythsoundtouch_FIRFilter.cpp-init-resultDivider.patch

File libs_libmythsoundtouch_FIRFilter.cpp-init-resultDivider.patch, 572 bytes (added by Erik Hovland <erik@…>, 12 years ago)

Initializes resultDivider to 0 in the FIRfilter ctor

  • libs/libmythsoundtouch/FIRFilter.cpp

    resultDivider is never initialized.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmythsoundtouch/FIRFilter.cpp |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/libs/libmythsoundtouch/FIRFilter.cpp b/libs/libmythsoundtouch/FIRFilter.cpp
    index f21fdc7..96d99fc 100644
    a b using namespace soundtouch; 
    5858FIRFilter::FIRFilter()
    5959{
    6060    resultDivFactor = 0;
     61    resultDivider = 0;
    6162    length = 0;
    6263    lengthDiv8 = 0;
    6364    filterCoeffs = NULL;