From: Andre Noll Date: Mon, 9 Aug 2021 18:48:23 +0000 (+0200) Subject: mp4: Remove useless casts in mp4ff_parse_tag(). X-Git-Tag: v0.7.1~7^2~120 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e1a8c906d87d543961e021700240a2148c088fc4;p=paraslash.git mp4: Remove useless casts in mp4ff_parse_tag(). These casts have no effect because "len" and the second argument of mp4ff_read_string() are of type uint32_t. --- diff --git a/mp4.c b/mp4.c index 47d98bcf..80acf41a 100644 --- a/mp4.c +++ b/mp4.c @@ -977,7 +977,7 @@ static int32_t mp4ff_parse_tag(mp4ff_t * f, const uint8_t parent, mp4ff_read_char(f); /* version */ mp4ff_read_int24(f); /* flags */ free(name); - name = mp4ff_read_string(f, (uint32_t) (subsize - (header_size + 4))); + name = mp4ff_read_string(f, subsize - (header_size + 4)); continue; } if (atom_type != ATOM_DATA) @@ -1029,8 +1029,8 @@ static int32_t mp4ff_parse_tag(mp4ff_t * f, const uint8_t parent, } } else { free(data); - data = mp4ff_read_string(f, (uint32_t) (subsize - (header_size + 8))); - len = (uint32_t) (subsize - (header_size + 8)); + data = mp4ff_read_string(f, subsize - (header_size + 8)); + len = subsize - (header_size + 8); } } if (data) {