]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
mp4: Rename atom_read() to parse_leaf_atom().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 19 Aug 2021 18:13:57 +0000 (20:13 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 30 May 2022 19:37:35 +0000 (21:37 +0200)
For consistency and symmetry with parse_subatoms().

mp4.c

diff --git a/mp4.c b/mp4.c
index a110e9146f88cb45e9a910652385415807426f3d..1d04b2c41159f54344d47195198496cc6ec8844e 100644 (file)
--- 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;
        }