[FFmpeg-cvslog] libavcodec/hcadec: fix header parsing after 'comp' section
Pavel Roslyy
git at videolan.org
Mon Jun 23 17:54:47 EEST 2025
ffmpeg | branch: master | Pavel Roslyy <roslypav at gmail.com> | Tue Jun 17 11:05:55 2025 -0700| [983a3b17e45a93c1c3c8edab58b85ddc52e70caa] | committer: Michael Niedermayer
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=983a3b17e45a93c1c3c8edab58b85ddc52e70caa
---
libavcodec/hcadec.c | 1 +
1 file changed, 1 insertion(+)
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);
More information about the ffmpeg-cvslog
mailing list