[FFmpeg-cvslog] twinvq: make ibps check unsigned

Michael Niedermayer git at videolan.org
Fri Nov 9 23:51:05 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov  9 21:22:12 2012 +0100| [98b377004d9c6fa1c1756c814efe9882b65f96b9] | committer: Michael Niedermayer

twinvq: make ibps check unsigned

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=98b377004d9c6fa1c1756c814efe9882b65f96b9
---

 libavcodec/twinvq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c
index 7281d9c..88c1c9a 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;
     }



More information about the ffmpeg-cvslog mailing list