mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-11 17:30:00 +01:00
aacdec_usac: skip coeff decoding if the number to be decoded is 0
Yet another thing not mentioned in the spec.
This commit is contained in:
@@ -572,9 +572,15 @@ static int decode_spectrum_and_dequant_ac(AACDecContext *s, float coef[1024],
|
|||||||
int gb_count;
|
int gb_count;
|
||||||
GetBitContext gb2;
|
GetBitContext gb2;
|
||||||
|
|
||||||
ff_aac_ac_init(&ac, gb);
|
|
||||||
c = ff_aac_ac_map_process(state, reset, N);
|
c = ff_aac_ac_map_process(state, reset, N);
|
||||||
|
|
||||||
|
if (!len) {
|
||||||
|
ff_aac_ac_finish(state, 0, N);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ff_aac_ac_init(&ac, gb);
|
||||||
|
|
||||||
/* Backup reader for rolling back by 14 bits at the end */
|
/* Backup reader for rolling back by 14 bits at the end */
|
||||||
gb2 = *gb;
|
gb2 = *gb;
|
||||||
gb_count = get_bits_count(&gb2);
|
gb_count = get_bits_count(&gb2);
|
||||||
|
|||||||
Reference in New Issue
Block a user