We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a85029 commit ec64c7bCopy full SHA for ec64c7b
src/isomedia/box_code_meta.c
@@ -566,10 +566,13 @@ GF_Err infe_box_read(GF_Box *s, GF_BitStream *bs)
566
ptr->content_type = (char*)gf_malloc(sizeof(char)*string_len);
567
if (!ptr->content_type) return GF_OUT_OF_MEM;
568
memcpy(ptr->content_type, buf+string_start, string_len);
569
- } else {
+ } else if (!ptr->content_encoding) {
570
ptr->content_encoding = (char*)gf_malloc(sizeof(char)*string_len);
571
if (!ptr->content_encoding) return GF_OUT_OF_MEM;
572
memcpy(ptr->content_encoding, buf+string_start, string_len);
573
+ } else {
574
+ //we could throw an error but we silently accept this infe
575
+ break;
576
}
577
string_start += string_len;
578
string_len = 0;
0 commit comments