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

@ -178,6 +178,8 @@ void OggEncoder::initEncoder()
throw SnapException("compression level has to be between -0.1 and 1.0");
}
LOG(INFO, LOG_TAG) << "Init - quality: " << quality << "\n";
/********** Encode setup ************/
vorbis_info_init(&vi_);