avcodec/cbs_lcevc: fix writing process blocks with size 6

6 is an undefined value for payload_size_type. For those, 7 is used to signal
a custom_byte_size synxtax element.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2026-03-24 11:12:25 -03:00
parent 00d1f41b2e
commit 35a1e43a6a
+2
View File
@@ -635,6 +635,8 @@ static int FUNC(process_block_list)(CodedBitstreamContext *ctx, RWContext *rw,
*rw = start_state;
tmp = FFMIN(block->payload_size, 7);
if (tmp == 6)
tmp = 7;
xu(3, payload_size_type, tmp, 0, 7, 0);
xu(5, payload_type, block->payload_type, 0, MAX_UINT_BITS(5), 0);