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

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

The following commit(s) were added to refs/heads/release/9.0 by this push:
     new b2f1a85428 avcodec/cbs_lcevc: don't return an error if a Process Block 
is missing padding bits
b2f1a85428 is described below

commit b2f1a85428c36cd49033f57d22c869d9b3f833fe
Author:     James Almer <[email protected]>
AuthorDate: Sun Aug 2 13:33:32 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Tue Aug 11 23:08:18 2026 -0300

    avcodec/cbs_lcevc: don't return an error if a Process Block is missing 
padding bits
    
    Samples made following the current (for now) faulty specification may not
    include alignment bits at the end of VUI parameters, so instead of erroring
    out, warn about it and keep going.
    In a writing scenario, like the lcevc_metadata bsf, the output bitstream 
will
    be written with them.
    
    Signed-off-by: James Almer <[email protected]>
    (cherry picked from commit 0f7eec026cb79300a460acb49fb03769abfbce5d)
---
 libavcodec/cbs_lcevc_syntax_template.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cbs_lcevc_syntax_template.c 
b/libavcodec/cbs_lcevc_syntax_template.c
index b24c1bf365..c497c5c2fb 100644
--- a/libavcodec/cbs_lcevc_syntax_template.c
+++ b/libavcodec/cbs_lcevc_syntax_template.c
@@ -515,7 +515,10 @@ static int FUNC(process_block)(CodedBitstreamContext *ctx, 
RWContext *rw,
             if (trailing_bits == 0) {
                 // The trailing bits must contain a payload_bit_equal_to_one, 
so
                 // they can't all be zero.
-                return AVERROR_INVALIDDATA;
+                // Don't error out as encodings following a faulty 
specification
+                // syntax trigger this.
+                av_log(ctx->log_ctx, AV_LOG_DEBUG, "Missing alignment bits in 
Process Block\n");
+                return 0;
             }
             trailing_zero_bits = ff_ctz(trailing_bits);
             current->extension_bit_length =

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

Reply via email to