mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-11 05:37:44 +02:00
Fix crash when feeding invalid ranges into flac
This commit is contained in:
parent
1725cffc6e
commit
5d7aedeb31
5 changed files with 38 additions and 12 deletions
|
@ -17,11 +17,13 @@
|
|||
***/
|
||||
|
||||
#include "null_encoder.hpp"
|
||||
#include "common/aixlog.hpp"
|
||||
|
||||
|
||||
namespace encoder
|
||||
{
|
||||
|
||||
static constexpr auto LOG_TAG = "NullEnc";
|
||||
|
||||
NullEncoder::NullEncoder(const std::string& codecOptions) : Encoder(codecOptions)
|
||||
{
|
||||
|
@ -37,6 +39,7 @@ void NullEncoder::encode(const msg::PcmChunk& chunk)
|
|||
|
||||
void NullEncoder::initEncoder()
|
||||
{
|
||||
LOG(INFO, LOG_TAG) << "Init\n";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue