]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/twinvqdec.c
Merge commit 'f50803354c6acb4575379d7c54ca48ec5d36dd61'
[ffmpeg] / libavcodec / twinvqdec.c
index 1445733f839e07a0d0389350cd592e6e16a81e94..c07259627977d12202b977129e17943e47577cd2 100644 (file)
@@ -356,9 +356,8 @@ static av_cold int twinvq_decode_init(AVCodecContext *avctx)
                                                  : AV_CH_LAYOUT_STEREO;
 
     ibps = avctx->bit_rate / (1000 * avctx->channels);
-
-    if (ibps > 255U) {
-        av_log(avctx, AV_LOG_ERROR, "unsupported per channel bitrate %dkbps\n", ibps);
+    if (ibps < 8 || ibps > 48) {
+        av_log(avctx, AV_LOG_ERROR, "Bad bitrate per channel value %d\n", ibps);
         return AVERROR_INVALIDDATA;
     }