Skip to content
Permalink
Browse files Browse the repository at this point in the history
fixed #1890
  • Loading branch information
jeanlf committed Aug 30, 2021
1 parent 96047e0 commit b03c9f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/isomedia/box_code_meta.c
Expand Up @@ -282,7 +282,8 @@ GF_Err iloc_box_read(GF_Box *s, GF_BitStream *bs)
}

for (i = 0; i < item_count; i++) {
GF_ItemLocationEntry *location_entry = (GF_ItemLocationEntry *)gf_malloc(sizeof(GF_ItemLocationEntry));
GF_ItemLocationEntry *location_entry;
GF_SAFEALLOC(location_entry, GF_ItemLocationEntry);
if (!location_entry) return GF_OUT_OF_MEM;

gf_list_add(ptr->location_entries, location_entry);
Expand Down Expand Up @@ -311,7 +312,8 @@ GF_Err iloc_box_read(GF_Box *s, GF_BitStream *bs)
extent_count = gf_bs_read_u16(bs);
location_entry->extent_entries = gf_list_new();
for (j = 0; j < extent_count; j++) {
GF_ItemExtentEntry *extent_entry = (GF_ItemExtentEntry *)gf_malloc(sizeof(GF_ItemExtentEntry));
GF_ItemExtentEntry *extent_entry;
GF_SAFEALLOC(extent_entry, GF_ItemExtentEntry);
if (!extent_entry) return GF_OUT_OF_MEM;

gf_list_add(location_entry->extent_entries, extent_entry);
Expand Down

0 comments on commit b03c9f2

Please sign in to comment.