Commit a1e093a6 authored by Michael Niedermayer's avatar Michael Niedermayer

alac: fix bps check

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 47ca2487
...@@ -303,7 +303,7 @@ static int decode_element(AVCodecContext *avctx, void *data, int ch_index, ...@@ -303,7 +303,7 @@ static int decode_element(AVCodecContext *avctx, void *data, int ch_index,
alac->extra_bits = get_bits(&alac->gb, 2) << 3; alac->extra_bits = get_bits(&alac->gb, 2) << 3;
bps = alac->sample_size - alac->extra_bits + channels - 1; bps = alac->sample_size - alac->extra_bits + channels - 1;
if (bps > 32) { if (bps > 32U) {
av_log(avctx, AV_LOG_ERROR, "bps is unsupported: %d\n", bps); av_log(avctx, AV_LOG_ERROR, "bps is unsupported: %d\n", bps);
return AVERROR_PATCHWELCOME; return AVERROR_PATCHWELCOME;
} }
......
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