Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] libavcodec/hcadec: fix header parsing after 'comp' section
@ 2025-06-17 18:05 Pavel Roslyy
  2025-06-17 18:08 ` Pavel Roslyy
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roslyy @ 2025-06-17 18:05 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Pavel Roslyy

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>
---
 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);
-- 
2.49.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FFmpeg-devel] [PATCH] libavcodec/hcadec: fix header parsing after 'comp' section
  2025-06-17 18:05 [FFmpeg-devel] [PATCH] libavcodec/hcadec: fix header parsing after 'comp' section Pavel Roslyy
@ 2025-06-17 18:08 ` Pavel Roslyy
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Roslyy @ 2025-06-17 18:08 UTC (permalink / raw)
  To: ffmpeg-devel

Sample file for testing:
https://streams.videolan.org/ffmpeg/incoming/encrypted-hca_lowkey-3201512.hca
Use -hca_lowkey 3201512 for decryption.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-17 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-17 18:05 [FFmpeg-devel] [PATCH] libavcodec/hcadec: fix header parsing after 'comp' section Pavel Roslyy
2025-06-17 18:08 ` Pavel Roslyy

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git