mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-12 06:27:12 +03:00
Bell catchup
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
#include "MP3Decoder.h"
|
||||
|
||||
#include <stdlib.h> // for free, malloc
|
||||
|
||||
#include "CodecType.h" // for bell
|
||||
#include <cstdio>
|
||||
|
||||
namespace bell {
|
||||
class AudioContainer;
|
||||
@@ -41,6 +40,8 @@ uint8_t* MP3Decoder::decode(uint8_t* inData, uint32_t& inLen,
|
||||
MP3GetLastFrameInfo(mp3, &frame);
|
||||
if (status != ERR_MP3_NONE) {
|
||||
lastErrno = status;
|
||||
inLen -= 2;
|
||||
outLen = 0;
|
||||
return nullptr;
|
||||
}
|
||||
if (sampleRate != frame.samprate) {
|
||||
|
||||
Reference in New Issue
Block a user