mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-06-05 22:39:13 +02: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:
committed by
Jean-Michel Trivi
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);
|
fMin(DFRACT_BITS - 1, new_summand_sf - total_power_high_after_sf);
|
||||||
total_power_high_after_sf = new_summand_sf;
|
total_power_high_after_sf = new_summand_sf;
|
||||||
} else if (new_summand_sf < total_power_high_after_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;
|
total_power_high_after += subsample_power_high[i] >> preShift2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user