mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
4xm: check for invalid zero ac coeffs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6d6eabd399
commit
13c56e9a9c
@ -525,7 +525,12 @@ static int decode_i_block(FourXContext *f, int16_t *block)
|
||||
if (code == 0xf0) {
|
||||
i += 16;
|
||||
} else {
|
||||
level = get_xbits(&f->gb, code & 0xf);
|
||||
if (code & 0xf) {
|
||||
level = get_xbits(&f->gb, code & 0xf);
|
||||
} else {
|
||||
av_log(f->avctx, AV_LOG_ERROR, "0 coeff\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
i += code >> 4;
|
||||
if (i >= 64) {
|
||||
av_log(f->avctx, AV_LOG_ERROR, "run %d oveflow\n", i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user