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 */
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;
}