From ed95e3b65098db5c3bbb8be160fb0ec9bc98a8c0 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 19 Aug 2021 20:13:57 +0200 Subject: [PATCH] mp4: Rename atom_read() to parse_leaf_atom(). For consistency and symmetry with parse_subatoms(). --- mp4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mp4.c b/mp4.c index a110e914..1d04b2c4 100644 --- a/mp4.c +++ b/mp4.c @@ -825,7 +825,7 @@ static int32_t read_meta(struct mp4 *f, uint64_t size) return 1; } -static int atom_read(struct mp4 *f, uint64_t size, uint8_t atom_type) +static int parse_leaf_atom(struct mp4 *f, uint64_t size, uint8_t atom_type) { uint64_t dest_position = get_position(f) + size - 8; int ret = 1; /* return success for atoms we don't care about */ @@ -898,10 +898,10 @@ static int parse_sub_atoms(struct mp4 *f, uint64_t total_size, bool meta_only) set_position(f, get_position(f) + size - header_size); continue; } - if (atom_type < SUBATOMIC) + if (atom_type < SUBATOMIC) /* atom contains subatoms */ ret = parse_sub_atoms(f, size - header_size, meta_only); else - ret = atom_read(f, size, atom_type); + ret = parse_leaf_atom(f, size, atom_type); if (ret <= 0) return ret; } -- 2.39.5