This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 0f7eec026c avcodec/cbs_lcevc: don't return an error if a Process Block
is missing padding bits
0f7eec026c is described below
commit 0f7eec026cb79300a460acb49fb03769abfbce5d
Author: James Almer <[email protected]>
AuthorDate: Sun Aug 2 13:33:32 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Sun Aug 9 15:01:31 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]>
---
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]