Fix crash when feeding invalid ranges into flac

This commit is contained in:
badaix 2021-05-05 11:29:42 +02:00
parent 1725cffc6e
commit 5d7aedeb31
5 changed files with 38 additions and 12 deletions

View file

@ -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);