Do not fuzz apodizations in flac tool fuzzer

These are already fuzzed elsewhere, so disable fuzzing in the flac
tool fuzzer.
This commit is contained in:
Martijn van Beurden 2023-04-23 21:51:17 +02:00
parent d4daa86167
commit dd288d2f23
1 changed files with 2 additions and 0 deletions

View File

@ -2108,8 +2108,10 @@ FLAC__bool EncoderSession_init_encoder(EncoderSession *e, encode_options_t optio
break; break;
} }
} }
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
if(*apodizations) if(*apodizations)
FLAC__stream_encoder_set_apodization(e->encoder, apodizations); FLAC__stream_encoder_set_apodization(e->encoder, apodizations);
#endif
FLAC__stream_encoder_set_total_samples_estimate(e->encoder, e->total_samples_to_encode); FLAC__stream_encoder_set_total_samples_estimate(e->encoder, e->total_samples_to_encode);
FLAC__stream_encoder_set_metadata(e->encoder, (num_metadata > 0)? metadata : 0, num_metadata); FLAC__stream_encoder_set_metadata(e->encoder, (num_metadata > 0)? metadata : 0, num_metadata);
FLAC__stream_encoder_set_limit_min_bitrate(e->encoder, options.limit_min_bitrate); FLAC__stream_encoder_set_limit_min_bitrate(e->encoder, options.limit_min_bitrate);