From 1b38ceb0d4bb4ae32cb93c295e3ef493b91f9a78 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 28 May 2015 13:49:23 +0200 Subject: + Fixed defects found by Coverity (well, most of them) --- src/adpcm/adpcm.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/adpcm') diff --git a/src/adpcm/adpcm.cpp b/src/adpcm/adpcm.cpp index 7805dc5..e3741b6 100644 --- a/src/adpcm/adpcm.cpp +++ b/src/adpcm/adpcm.cpp @@ -194,6 +194,7 @@ int CompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int cb return 2; // Set the initial step index for each channel + PredictedSamples[0] = PredictedSamples[1] = 0; StepIndexes[0] = StepIndexes[1] = INITIAL_ADPCM_STEP_INDEX; // Next, InitialSample value for each channel follows @@ -306,6 +307,7 @@ int DecompressADPCM(void * pvOutBuffer, int cbOutBuffer, void * pvInBuffer, int int ChannelIndex; // Current channel index // Initialize the StepIndex for each channel + PredictedSamples[0] = PredictedSamples[1] = 0; StepIndexes[0] = StepIndexes[1] = INITIAL_ADPCM_STEP_INDEX; // _tprintf(_T("== DCMP Started ==============\n")); -- cgit v1.2.3