Skip to content

Commit

Permalink
gf_isom_get_user_data: handle null uuid (fixes #2629)
Browse files Browse the repository at this point in the history
  • Loading branch information
aureliendavid committed Oct 11, 2023
1 parent 220dcd9 commit e79b0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isomedia/isom_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -2804,7 +2804,7 @@ GF_Err gf_isom_get_user_data(GF_ISOFile *movie, u32 trackNumber, u32 UserDataTyp

i=0;
while ((map = (GF_UserDataMap*)gf_list_enum(udta->recordList, &i))) {
if ((map->boxType == GF_ISOM_BOX_TYPE_UUID) && !memcmp(map->uuid, UUID, 16)) goto found;
if ((map->boxType == GF_ISOM_BOX_TYPE_UUID) && UUID && !memcmp(map->uuid, UUID, 16)) goto found;
else if (map->boxType == UserDataType) goto found;

}
Expand Down

0 comments on commit e79b0cf

Please sign in to comment.