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 c6bb22dea0 avcodec/cbs_av1: check that a Frame Header was seen before 
parsing a Tile Group
c6bb22dea0 is described below

commit c6bb22dea018fbf753b70c592a1e346b9a24f074
Author:     James Almer <[email protected]>
AuthorDate: Mon Jun 15 23:37:36 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat Jun 20 21:19:56 2026 -0300

    avcodec/cbs_av1: check that a Frame Header was seen before parsing a Tile 
Group
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/cbs_av1.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index deb73c8ebb..4bacebf086 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -943,6 +943,10 @@ static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
         {
             AV1RawTileGroup *tile_group = obu->header.obu_type == 
AV1_OBU_FRAME ? &obu->obu.frame.tile_group
                                                                                
 : &obu->obu.tile_group;
+
+            if (!priv->seen_frame_header)
+                return AVERROR_INVALIDDATA;
+
             err = cbs_av1_ref_tile_data(ctx, unit, &gbc,
                                         &tile_group->data_ref,
                                         &tile_group->data,

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

Reply via email to