From 98b377004d9c6fa1c1756c814efe9882b65f96b9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 9 Nov 2012 21:22:12 +0100 Subject: [PATCH] twinvq: make ibps check unsigned Signed-off-by: Michael Niedermayer --- libavcodec/twinvq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c index 7281d9cd2d..88c1c9a6c8 100644 --- a/libavcodec/twinvq.c +++ b/libavcodec/twinvq.c @@ -1142,7 +1142,7 @@ static av_cold int twin_decode_init(AVCodecContext *avctx) ibps = avctx->bit_rate / (1000 * avctx->channels); - if (ibps > 255) { + if (ibps > 255U) { av_log(avctx, AV_LOG_ERROR, "unsupported per channel bitrate %dkbps\n", ibps); return AVERROR_INVALIDDATA; }