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 {
20
20
public:
21
21
AACDecoderHelix () {
22
22
setMinFrameBufferSize (AAC_MIN_FRAME_SIZE);
23
+ memset (&aacFrameInfo, 0 , sizeof (_AACFrameInfo));
23
24
}
24
25
25
26
#if defined(ARDUINO) || defined(HELIX_PRINT)
26
27
AACDecoderHelix (Print &output) {
27
28
setMinFrameBufferSize (AAC_MIN_FRAME_SIZE);
28
29
this ->out = &output;
30
+ memset (&aacFrameInfo, 0 , sizeof (_AACFrameInfo));
29
31
}
30
32
#endif
31
33
32
34
AACDecoderHelix (AACDataCallback dataCallback) {
33
35
setMinFrameBufferSize (AAC_MIN_FRAME_SIZE);
34
36
this ->pcmCallback = dataCallback;
37
+ memset (&aacFrameInfo, 0 , sizeof (_AACFrameInfo));
35
38
}
36
39
37
40
virtual ~AACDecoderHelix () { end (); }
Original file line number Diff line number Diff line change @@ -25,24 +25,28 @@ class MP3DecoderHelix : public CommonHelix {
25
25
MP3DecoderHelix () {
26
26
this ->mp3_type = MP3Normal;
27
27
setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
28
+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
28
29
}
29
30
30
31
#if defined(ARDUINO) || defined(HELIX_PRINT)
31
32
MP3DecoderHelix (Print &output, MP3Type mp3Type = MP3Normal) {
32
33
this ->out = &output;
33
34
this ->mp3_type = mp3Type;
34
35
setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
36
+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
35
37
}
36
38
#endif
37
39
MP3DecoderHelix (MP3DataCallback dataCallback, MP3Type mp3Type = MP3Normal) {
38
40
this ->pcmCallback = dataCallback;
39
41
this ->mp3_type = mp3Type;
40
42
setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
43
+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
41
44
}
42
45
43
46
MP3DecoderHelix (MP3Type mp3Type) {
44
47
this ->mp3_type = mp3Type;
45
48
setMinFrameBufferSize (MP3_MIN_FRAME_SIZE);
49
+ memset (&mp3FrameInfo, 0 , sizeof (MP3FrameInfo));
46
50
}
47
51
48
52
virtual ~MP3DecoderHelix () { end (); }
You can’t perform that action at this time.
0 commit comments