From e1a8c906d87d543961e021700240a2148c088fc4 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 9 Aug 2021 20:48:23 +0200 Subject: [PATCH] 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. --- mp4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.39.5