Commit 9af6abdc authored by Michael Niedermayer's avatar Michael Niedermayer

atrac3: Fix crash in tonal component decoding.

Fixes Ticket780
Bug Found by: cosminamironesei
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 552ec4c9
......@@ -402,6 +402,8 @@ static int decodeTonalComponents (GetBitContext *gb, tonal_component *pComponent
for (k=0; k<coded_components; k++) {
sfIndx = get_bits(gb,6);
if(component_count>=64)
return AVERROR_INVALIDDATA;
pComponent[component_count].pos = j * 64 + (get_bits(gb,6));
max_coded_values = SAMPLES_PER_FRAME - pComponent[component_count].pos;
coded_values = coded_values_per_component + 1;
......
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