}
/* parse atoms that are sub atoms of other atoms */
-static int parse_sub_atoms(struct mp4 *f, uint64_t total_size, int meta_only)
+static int parse_sub_atoms(struct mp4 *f, uint64_t total_size, bool meta_only)
{
int ret;
uint64_t size;
return 1;
}
-static int parse_root_atoms(struct mp4 *f, int meta_only)
+static int parse_root_atoms(struct mp4 *f, bool meta_only)
{
int ret;
uint64_t size;
struct mp4 *f = para_calloc(sizeof(struct mp4));
f->cb = cb;
- ret = parse_root_atoms(f, 0);
+ ret = parse_root_atoms(f, false);
if (ret < 0) {
free(f);
return NULL;
struct mp4 *f = para_calloc(sizeof(struct mp4));
f->cb = cb;
- ret = parse_root_atoms(f, 1);
+ ret = parse_root_atoms(f, true);
if (ret < 0) {
free(f);
return NULL;