Commit 98b37700 authored by Michael Niedermayer's avatar Michael Niedermayer

twinvq: make ibps check unsigned

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2fbb37b5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment