mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-02 05:56:46 +08:00
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>
This commit is contained in:

committed by
Michael Niedermayer

parent
c94a419e32
commit
983a3b17e4
@ -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);
|
||||
|
Reference in New Issue
Block a user