mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add FLAC__format_sample_rate_is_subset()
This commit is contained in:
@@ -739,16 +739,7 @@ static FLAC__StreamEncoderInitStatus init_stream_internal_(
|
||||
encoder->protected_->blocksize != 16384
|
||||
)
|
||||
return FLAC__STREAM_ENCODER_INIT_STATUS_NOT_STREAMABLE;
|
||||
if(
|
||||
encoder->protected_->sample_rate != 8000 &&
|
||||
encoder->protected_->sample_rate != 16000 &&
|
||||
encoder->protected_->sample_rate != 22050 &&
|
||||
encoder->protected_->sample_rate != 24000 &&
|
||||
encoder->protected_->sample_rate != 32000 &&
|
||||
encoder->protected_->sample_rate != 44100 &&
|
||||
encoder->protected_->sample_rate != 48000 &&
|
||||
encoder->protected_->sample_rate != 96000
|
||||
)
|
||||
if(!FLAC__format_sample_rate_is_subset(encoder->protected_->sample_rate))
|
||||
return FLAC__STREAM_ENCODER_INIT_STATUS_NOT_STREAMABLE;
|
||||
if(
|
||||
encoder->protected_->bits_per_sample != 8 &&
|
||||
|
||||
Reference in New Issue
Block a user