mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-07 11:47:45 +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
|
@ -144,7 +144,7 @@ void OpusEncoder::initEncoder()
|
|||
throw SnapException("Opus error parsing options: " + codecOptions_);
|
||||
}
|
||||
|
||||
LOG(INFO, LOG_TAG) << "Opus bitrate: " << bitrate << " bps, complexity: " << complexity << "\n";
|
||||
LOG(INFO, LOG_TAG) << "Init - bitrate: " << bitrate << " bps, complexity: " << complexity << "\n";
|
||||
|
||||
int error;
|
||||
enc_ = opus_encoder_create(sampleFormat_.rate(), sampleFormat_.channels(), OPUS_APPLICATION_RESTRICTED_LOWDELAY, &error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue