From: Andre Noll Date: Sat, 14 Aug 2021 18:14:51 +0000 (+0200) Subject: mp4: Rename parse_metadata() to read_ilst(). X-Git-Tag: v0.7.1~7^2~76 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=cd16c747d70d50c5aecf009727a12da3b6210253;p=paraslash.git 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. --- 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; }