diff --git a/tools/target_swr_fuzzer.c b/tools/target_swr_fuzzer.c index 9192d4bed5..f154a11632 100644 --- a/tools/target_swr_fuzzer.c +++ b/tools/target_swr_fuzzer.c @@ -98,7 +98,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { av_channel_layout_copy(& in_ch_layout, &layouts[bytestream2_get_byte(&gbc) % FF_ARRAY_ELEMS(layouts)]); av_channel_layout_copy(&out_ch_layout, &layouts[bytestream2_get_byte(&gbc) % FF_ARRAY_ELEMS(layouts)]); - out_sample_nb = bytestream2_get_le32(&gbc); + out_sample_nb = bytestream2_get_le32(&gbc) & 0x7FFFFFFF; flags64 = bytestream2_get_le64(&gbc); if (flags64 & 0x10)