aboutsummaryrefslogtreecommitdiffstats
path: root/src/AACDecoder.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 10:42:51 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-11-18 10:42:51 +0100
commit733318bc2d484b5b214aa215bb54a1beab7fadb4 (patch)
tree70b2b61e7122256ec97aee3cc1016abaaed4647d /src/AACDecoder.h
parentdb0ecfb183922eae77bda977efb8c0c037ca045e (diff)
downloadODR-SourceCompanion-733318bc2d484b5b214aa215bb54a1beab7fadb4.tar.gz
ODR-SourceCompanion-733318bc2d484b5b214aa215bb54a1beab7fadb4.tar.bz2
ODR-SourceCompanion-733318bc2d484b5b214aa215bb54a1beab7fadb4.zip
Initialise AACDecoder::m_peak
Diffstat (limited to 'src/AACDecoder.h')
-rw-r--r--src/AACDecoder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AACDecoder.h b/src/AACDecoder.h
index 6adae56..714e7a1 100644
--- a/src/AACDecoder.h
+++ b/src/AACDecoder.h
@@ -38,7 +38,7 @@ class AACDecoder {
AACDecoder& operator=(const AACDecoder&) = delete;
void decode_frame(uint8_t *data, size_t len);
- struct peak_t { int16_t peak_left; int16_t peak_right; };
+ struct peak_t { int16_t peak_left = 0; int16_t peak_right = 0; };
peak_t get_peaks();
private:
@@ -46,7 +46,7 @@ class AACDecoder {
bool m_decoder_set_up = false;
int m_channels = 0;
- peak_t m_peak;
+ peak_t m_peak = {};
HANDLE_AACDECODER m_handle;
std::vector<uint8_t> m_output_frame;