mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-04 11:38:19 +00:00
wmapro: error out on impossible scale factor offsets
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 02ec656af7
)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
parent
bd5ff335ec
commit
f16aa5843f
@ -435,7 +435,8 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
||||
for (x = 0; x < num_possible_block_sizes; x++) {
|
||||
int v = 0;
|
||||
while (s->sfb_offsets[x][v + 1] << x < offset)
|
||||
++v;
|
||||
if (++v >= MAX_BANDS)
|
||||
return AVERROR_INVALIDDATA;
|
||||
s->sf_offsets[i][x][b] = v;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user