Ticket #4890: libs_libmyth_audiooutputdigitalencoder.cpp-init-mem-var-audio_bytes_per_sample.patch

File libs_libmyth_audiooutputdigitalencoder.cpp-init-mem-var-audio_bytes_per_sample.patch, 678 bytes (added by Erik Hovland <erik@…>, 13 years ago)

Initialize member variable audio_bytes_per_sample in ctor

  • libs/libmyth/audiooutputdigitalencoder.cpp

    audio_bytes_per_sample is not initialized in the constructor. It should me.
    
    From: Erik Hovland <erik@hovland.org>
    
    
    ---
    
     libs/libmyth/audiooutputdigitalencoder.cpp |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/libs/libmyth/audiooutputdigitalencoder.cpp b/libs/libmyth/audiooutputdigitalencoder.cpp
    index bbfcbb7..f50764e 100644
    a b extern "C" { 
    2626#define MAX_AC3_FRAME_SIZE 6144
    2727
    2828AudioOutputDigitalEncoder::AudioOutputDigitalEncoder(void) :
     29    audio_bytes_per_sample(0),
    2930    av_context(NULL),
    3031    outbuf(NULL),
    3132    outbuf_size(0),