mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user