Skip to content

Commit

Permalink
memory corruption
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Oct 28, 2021
1 parent bc0bb2b commit b142ff4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MP3DecoderHelix.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "libhelix-mp3/mp3dec.h"
#include "libhelix-mp3/mp3common.h"

#define MP3_MAX_OUTPUT_SIZE 1024 * 2
#define MP3_MAX_OUTPUT_SIZE 1024 * 5
#define MP3_MAX_FRAME_SIZE 1600

namespace libhelix {
Expand Down Expand Up @@ -138,6 +138,9 @@ class MP3DecoderHelix : public CommonHelix {

// return the resulting PWM data
void provideResult(MP3FrameInfo &info){
// increase PWM size if this fails
assert(info.outputSamps<maxPWMSize());

LOG(Debug, "=> provideResult: %d", info.outputSamps);
if (info.outputSamps>0){
// provide result
Expand Down

0 comments on commit b142ff4

Please sign in to comment.