From 3e859d933ed94e6a373adb3b9aa4d023c26f4b74 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 3 Aug 2025 16:28:19 -0300 Subject: [PATCH] avformat/mov: item names can be NULL in infe boxes Fixes assertions after 11a53339805950bf2d0b429cc598c5f6b83ae1c7. Signed-off-by: James Almer --- libavformat/mov.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 40105a408d..be52f53c0c 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -8956,8 +8956,7 @@ static int mov_read_infe(MOVContext *c, AVIOContext *pb, MOVAtom atom) return AVERROR(ENOMEM); } - av_assert1(ret); - av_bprint_finalize(&item_name, &item->name); + av_bprint_finalize(&item_name, ret ? &item->name : NULL); item->item_id = item_id; item->type = item_type;