Merge commit 'c77d409bf95954aceb762dd800d1ee2868c4b0d4'
* commit 'c77d409bf95954aceb762dd800d1ee2868c4b0d4': twinvqdec: Check the ibps parameter separately See: b8dc5f8bb3b14bfd2289a0444c7b706299555d97 See: 98b377004d9c6fa1c1756c814efe9882b65f96b9 Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
015f7ce7d7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user