aboutsummaryrefslogtreecommitdiffstats
path: root/src/AACDecoder.h
diff options
context:
space:
mode:
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;