mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
alac: fix bps check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
47ca2487ae
commit
a1e093a6fb
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user