lavc/videotoolbox_vp9: fix vpcC flags offset

Write the 24-bit vpcC flags field at the current cursor position after
the version byte. The previous code wrote to p+1 instead of p, leaving
one byte uninitialized between version and flags and shifting all
subsequent fields (profile, level, bitdepth, etc.) by one byte.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
Jun Zhao
2026-04-12 22:15:51 +00:00
committed by Marvin Scholz
co-authored by Marvin Scholz
parent 57397a683d
commit 411484e8c9
+1 -1
View File
@@ -83,7 +83,7 @@ CFDataRef ff_videotoolbox_vpcc_extradata_create(AVCodecContext *avctx)
p = vt_extradata;
*p++ = 1; /* version */
AV_WB24(p + 1, 0); /* flags */
AV_WB24(p, 0); /* flags */
p += 3;
*p++ = h->h.profile;