mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-01-21 03:17:26 +01:00
Limit too large shift value in apply_inter_tes().
Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I38cc7053e671f6e20a1a9ba4f1645d1cf8be77e2
This commit is contained in:
parent
54cd15bd80
commit
b2f2a109d3
@ -739,7 +739,8 @@ static void apply_inter_tes(FIXP_DBL **qmfReal, FIXP_DBL **qmfImag,
|
||||
fMin(DFRACT_BITS - 1, new_summand_sf - total_power_high_after_sf);
|
||||
total_power_high_after_sf = new_summand_sf;
|
||||
} else if (new_summand_sf < total_power_high_after_sf) {
|
||||
subsample_power_high[i] >>= total_power_high_after_sf - new_summand_sf;
|
||||
subsample_power_high[i] >>=
|
||||
fMin(DFRACT_BITS - 1, total_power_high_after_sf - new_summand_sf);
|
||||
}
|
||||
total_power_high_after += subsample_power_high[i] >> preShift2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user