[FFmpeg-cvslog] aacdec_usac: fix typo in fac_length
Lynne
git at videolan.org
Sun Jun 2 22:12:56 EEST 2024
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sun Jun 2 21:10:36 2024 +0200| [18757b26bd4cf8e2543d29c0efcf7c4c0c7c667f] | committer: Lynne
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=18757b26bd4cf8e2543d29c0efcf7c4c0c7c667f
---
libavcodec/aac/aacdec_usac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
More information about the ffmpeg-cvslog
mailing list