From 09d7887b2ffc48ea9e1dfb2265a7396f2be42cca Mon Sep 17 00:00:00 2001 From: Martijn van Beurden Date: Wed, 10 Jul 2024 14:40:34 +0200 Subject: [PATCH] Remove unnecessary assert condition Credit: Oss-Fuzz Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=60777 --- src/share/grabbag/replaygain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/share/grabbag/replaygain.c b/src/share/grabbag/replaygain.c index 32c96031..acf502e1 100644 --- a/src/share/grabbag/replaygain.c +++ b/src/share/grabbag/replaygain.c @@ -139,8 +139,8 @@ FLAC__bool grabbag__replaygain_analyze(const FLAC__int32 * const input[], FLAC__ FLAC__int32 block_peak = 0, s; uint32_t i, j; - FLAC__ASSERT(bps >= FLAC__MIN_BITS_PER_SAMPLE && bps <= FLAC__MAX_BITS_PER_SAMPLE); - FLAC__ASSERT(FLAC__MIN_BITS_PER_SAMPLE == 4 && FLAC__MAX_BITS_PER_SAMPLE == 32); + FLAC__ASSERT(bps > 0 && bps <= FLAC__MAX_BITS_PER_SAMPLE); + FLAC__ASSERT(FLAC__MAX_BITS_PER_SAMPLE == 32); if(bps == 16) { if(is_stereo) {