File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,21 @@ class AACDecoderHelix : public CommonHelix {
2020 public:
2121 AACDecoderHelix () {
2222 setMinFrameBufferSize (AAC_MIN_FRAME_SIZE);
23+ memset (&aacFrameInfo, 0 , sizeof (_AACFrameInfo));
2324 }
2425
2526#if defined(ARDUINO) || defined(HELIX_PRINT)
2627 AACDecoderHelix (Print &output) {
2728 setMinFrameBufferSize (AAC_MIN_FRAME_SIZE);
2829 this ->out = &output;
30+ memset (&aacFrameInfo, 0 , sizeof (_AACFrameInfo));
2931 }
3032#endif
3133
3234 AACDecoderHelix (AACDataCallback dataCallback) {
3335 setMinFrameBufferSize (AAC_MIN_FRAME_SIZE);
3436 this ->pcmCallback = dataCallback;
37+ memset (&aacFrameInfo, 0 , sizeof (_AACFrameInfo));
3538 }
3639
3740 virtual ~AACDecoderHelix () { end (); }
Original file line number Diff line number Diff line change @@ -25,24 +25,28 @@ class MP3DecoderHelix : public CommonHelix {
2525 MP3DecoderHelix () {
2626 this ->mp3_type = MP3Normal;
2727 setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
28+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
2829 }
2930
3031#if defined(ARDUINO) || defined(HELIX_PRINT)
3132 MP3DecoderHelix (Print &output, MP3Type mp3Type = MP3Normal) {
3233 this ->out = &output;
3334 this ->mp3_type = mp3Type;
3435 setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
36+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
3537 }
3638#endif
3739 MP3DecoderHelix (MP3DataCallback dataCallback, MP3Type mp3Type = MP3Normal) {
3840 this ->pcmCallback = dataCallback;
3941 this ->mp3_type = mp3Type;
4042 setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
43+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
4144 }
4245
4346 MP3DecoderHelix (MP3Type mp3Type) {
4447 this ->mp3_type = mp3Type;
4548 setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
49+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
4650 }
4751
4852 virtual ~MP3DecoderHelix () { end (); }
You can’t perform that action at this time.
0 commit comments