1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avformat/mov: item names can be NULL in infe boxes

Fixes assertions after 11a5333980.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2025-08-03 16:28:19 -03:00
parent 5c95e8e3a6
commit 3e859d933e

View File

@ -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;