diff --git a/libavcodec/wavarc.c b/libavcodec/wavarc.c index 0dc5849679..4bdd548d5f 100644 --- a/libavcodec/wavarc.c +++ b/libavcodec/wavarc.c @@ -311,7 +311,7 @@ static int decode_2slp(AVCodecContext *avctx, return AVERROR_EOF; case 8: s->nb_samples = get_urice(gb, 8); - if (s->nb_samples > 570) { + if (s->nb_samples > 570U) { s->nb_samples = 570; return AVERROR_INVALIDDATA; } @@ -587,7 +587,7 @@ static int decode_5elp(AVCodecContext *avctx, return AVERROR_EOF; case 11: s->nb_samples = get_urice(gb, 8); - if (s->nb_samples > 570) { + if (s->nb_samples > 570U) { s->nb_samples = 570; return AVERROR_INVALIDDATA; }