This trivial one-liner has only a single caller.
return write_data(f, temp, sizeof(temp));
}
-static int32_t truncate_stream(struct mp4 *f)
-{
- return f->stream->truncate(f->stream->user_data);
-}
-
int32_t mp4_meta_update(struct mp4_callback *f, const struct mp4_metadata *data)
{
void *new_moov_data;
write_data(ff, "moov", 4);
write_data(ff, new_moov_data, new_moov_size);
}
-
- truncate_stream(ff);
-
+ f->truncate(f->user_data);
mp4_close(ff);
return 1;
}