The function may be called with the intention to update the meta tags
later by calling mp4_update_meta(), albeit mp4_open_meta() is cheaper
if the caller only wants to modify the metadata. The old name is thus
slightly misleading, and it's longer.
c->cb.seek = aac_afh_seek_cb;
c->cb.user_data = c;
- ret = mp4_open_read(&c->cb, &c->mp4);
+ ret = mp4_open(&c->cb, &c->mp4);
if (ret < 0)
goto free_ctx;
*afh_context = c;
return ret;
}
-int mp4_open_read(const struct mp4_callback *cb, struct mp4 **result)
+int mp4_open(const struct mp4_callback *cb, struct mp4 **result)
{
struct mp4 *f;
int ret;
struct mp4; /* opaque */
int mp4_set_sample_position(struct mp4 *f, uint32_t sample);
-int mp4_open_read(const struct mp4_callback *cb, struct mp4 **result);
+int mp4_open(const struct mp4_callback *cb, struct mp4 **result);
void mp4_close(struct mp4 *f);
int mp4_get_sample_size(const struct mp4 *f, uint32_t sample, uint32_t *result);
uint16_t mp4_get_sample_rate(const struct mp4 *f);