diff options
author | Pavel Roslyy <roslypav@gmail.com> | 2025-06-17 11:05:55 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2025-06-23 14:28:54 +0200 |
commit | 983a3b17e45a93c1c3c8edab58b85ddc52e70caa (patch) | |
tree | 603447b42a70044b053bd1945a9b3e3096662aab | |
parent | c94a419e32ea385b7557d516d32824b8f78ff302 (diff) | |
download | ffmpeg-983a3b17e45a93c1c3c8edab58b85ddc52e70caa.tar.gz |
libavcodec/hcadec: fix header parsing after 'comp' section
Need to skip 2 more bytes because comp sections are 12 bytes long.
Fixes decryption since ciph_type is now being set.
Signed-off-by: Pavel Roslyy <roslypav@gmail.com>
-rw-r--r-- | libavcodec/hcadec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hcadec.c b/libavcodec/hcadec.c index feb3dce3de..7780372cf3 100644 --- a/libavcodec/hcadec.c +++ b/libavcodec/hcadec.c @@ -245,6 +245,7 @@ static int init_hca(AVCodecContext *avctx, const uint8_t *extradata, c->base_band_count = bytestream2_get_byteu(gb); c->stereo_band_count = bytestream2_get_byte (gb); c->bands_per_hfr_group = bytestream2_get_byte (gb); + bytestream2_skipu(gb, 2); } else if (chunk == MKBETAG('d', 'e', 'c', 0)) { bytestream2_skipu(gb, 2); bytestream2_skipu(gb, 1); |