From cd16c747d70d50c5aecf009727a12da3b6210253 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 14 Aug 2021 20:14:51 +0200 Subject: [PATCH] mp4: Rename parse_metadata() to read_ilst(). To make the naming consistent with the other atom parsers. Kill a pointless cast and unnecessary braces in the caller while at it. --- mp4.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mp4.c b/mp4.c index 9ea65d07..ba5146a9 100644 --- a/mp4.c +++ b/mp4.c @@ -699,7 +699,7 @@ static int32_t read_mdhd(struct mp4 *f) return 1; } -static int32_t parse_metadata(struct mp4 *f, int32_t size) +static int32_t read_ilst(struct mp4 *f, int32_t size) { uint64_t sumsize = 0; @@ -739,11 +739,10 @@ static int32_t read_meta(struct mp4 *f, uint64_t size) subsize = atom_read_header(f, &atom_type, &header_size); if (subsize <= header_size + 4) return 1; - if (atom_type == ATOM_ILST) { - parse_metadata(f, (uint32_t) (subsize - (header_size + 4))); - } else { + if (atom_type == ATOM_ILST) + read_ilst(f, subsize - (header_size + 4)); + else set_position(f, get_position(f) + subsize - header_size); - } sumsize += subsize; } -- 2.39.5