}
}
-static uint32_t fix_byte_order_32(uint32_t src)
-{
- return read_u32_be(&src);
-}
-
static void *modify_moov(struct mp4 *f, uint32_t *out_size)
{
int ret;
ret = read_int32(f, &tmp);
if (ret <= 0)
return NULL;
- *(uint32_t *)p_out = fix_byte_order_32(tmp + size_delta);
+ write_u32_be(p_out, tmp + size_delta);
p_out += 4;
ret = read_data(f, p_out, 4);
if (ret <= 0)
ret = read_int32(f, &tmp);
if (ret <= 0)
return NULL;
- *(uint32_t *)p_out = fix_byte_order_32(tmp + size_delta);
+ write_u32_be(p_out, tmp + size_delta);
p_out += 4;
ret = read_data(f, p_out, 4);
if (ret <= 0)
ret = read_int32(f, &tmp);
if (ret <= 0)
return NULL;
- *(uint32_t *)p_out = fix_byte_order_32(tmp + size_delta);
+ write_u32_be(p_out, tmp + size_delta);
p_out += 4;
ret = read_data(f, p_out, 4);
if (ret <= 0)