This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 282cf4425d84cc83d9232464860e9c9c27ffbdeb Author: James Almer <[email protected]> AuthorDate: Tue Mar 3 18:33:28 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Fri Mar 6 23:18:35 2026 -0300 avcodec/cbs_av1: don't try to write a Redundant Frame Header as a normal one Section 6.8.1 of the AV1 specification states: "If obu_type is equal to OBU_REDUNDANT_FRAME_HEADER, it is a requirement of bitstream conformance that SeenFrameHeader is equal to 1." Leave the existing behavior for reading scenarios as such a file may still be readable. Signed-off-by: James Almer <[email protected]> --- libavcodec/cbs_av1_syntax_template.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c index 5518544a4d..86b9a31614 100644 --- a/libavcodec/cbs_av1_syntax_template.c +++ b/libavcodec/cbs_av1_syntax_template.c @@ -1758,7 +1758,15 @@ static int FUNC(frame_header_obu)(CodedBitstreamContext *ctx, RWContext *rw, } } else { if (redundant) +#ifdef READ HEADER("Redundant Frame Header (used as Frame Header)"); +#else + { + av_log(ctx->log_ctx, AV_LOG_ERROR, "Invalid redundant " + "frame header OBU.\n"); + return AVERROR_INVALIDDATA; + } +#endif else HEADER("Frame Header"); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
