This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

The following commit(s) were added to refs/heads/release/8.1 by this push:
     new a3475e2554 avcodec/cbs_lcevc: fix writing process blocks with size 6
a3475e2554 is described below

commit a3475e255464a68aee4643d45eb34b686b29bda0
Author:     James Almer <[email protected]>
AuthorDate: Tue Mar 24 11:12:25 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Tue Mar 24 18:06:22 2026 -0300

    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 <[email protected]>
    (cherry picked from commit 35a1e43a6a0f1a031ae4d037d27d0e413071882d)
---
 libavcodec/cbs_lcevc_syntax_template.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/cbs_lcevc_syntax_template.c 
b/libavcodec/cbs_lcevc_syntax_template.c
index 17ea907152..b24c1bf365 100644
--- a/libavcodec/cbs_lcevc_syntax_template.c
+++ b/libavcodec/cbs_lcevc_syntax_template.c
@@ -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);
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to