aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-06-02 21:10:36 +0200
committerLynne <dev@lynne.ee>2024-06-02 21:12:31 +0200
commit18757b26bd4cf8e2543d29c0efcf7c4c0c7c667f (patch)
tree2b5531d86da2fc02413f09069a8bfdd905ac8dd6
parentd8ffd65bfd07f8186bfaf14f27269e2441738e49 (diff)
downloadffmpeg-18757b26bd4cf8e2543d29c0efcf7c4c0c7c667f.tar.gz
aacdec_usac: fix typo in fac_length
The spec says: fac_length = (window_sequence==EIGHT_SHORT_SEQUENCE) ? ccfl/16 : ccfl/8; The length used was flipped for short vs long.
-rw-r--r--libavcodec/aac/aacdec_usac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac/aacdec_usac.c b/libavcodec/aac/aacdec_usac.c
index f63a67381b..00ec74718b 100644
--- a/libavcodec/aac/aacdec_usac.c
+++ b/libavcodec/aac/aacdec_usac.c
@@ -1338,7 +1338,7 @@ static int decode_usac_core_coder(AACDecContext *ac, AACUSACConfig *usac,
if (get_bits1(gb)) { /* fac_data_present */
const uint16_t len_8 = usac->core_frame_len / 8;
const uint16_t len_16 = usac->core_frame_len / 16;
- const uint16_t fac_len = ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE ? len_8 : len_16;
+ const uint16_t fac_len = ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE ? len_16 : len_8;
ret = ff_aac_parse_fac_data(ue, gb, 1, fac_len);
if (ret < 0)
return ret;