diff options
author | James Almer <jamrial@gmail.com> | 2025-08-03 16:28:19 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-08-03 16:28:19 -0300 |
commit | 3e859d933ed94e6a373adb3b9aa4d023c26f4b74 (patch) | |
tree | c5eb8edcdfa91d72ac871c42f22ddf61c30d026c | |
parent | 5c95e8e3a6fff002294ce1684d6c349cb51f6673 (diff) | |
download | ffmpeg-3e859d933ed94e6a373adb3b9aa4d023c26f4b74.tar.gz |
avformat/mov: item names can be NULL in infe boxes
Fixes assertions after 11a53339805950bf2d0b429cc598c5f6b83ae1c7.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/mov.c | 3 |
1 files changed, 1 insertions, 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; |