We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0bb2b commit b142ff4Copy full SHA for b142ff4
src/MP3DecoderHelix.h
@@ -4,7 +4,7 @@
4
#include "libhelix-mp3/mp3dec.h"
5
#include "libhelix-mp3/mp3common.h"
6
7
-#define MP3_MAX_OUTPUT_SIZE 1024 * 2
+#define MP3_MAX_OUTPUT_SIZE 1024 * 5
8
#define MP3_MAX_FRAME_SIZE 1600
9
10
namespace libhelix {
@@ -138,6 +138,9 @@ class MP3DecoderHelix : public CommonHelix {
138
139
// return the resulting PWM data
140
void provideResult(MP3FrameInfo &info){
141
+ // increase PWM size if this fails
142
+ assert(info.outputSamps<maxPWMSize());
143
+
144
LOG(Debug, "=> provideResult: %d", info.outputSamps);
145
if (info.outputSamps>0){
146
// provide result
0 commit comments