return read_u64_be(data);
}
+static uint32_t read_int32(struct mp4 *f)
+{
+ int8_t data[4];
+
+ read_data(f, data, 4);
+ return read_u32_be(data);
+}
+
+static uint32_t read_int24(struct mp4 *f)
+{
+ int8_t data[4];
+
+ read_data(f, data, 3);
+ return read_u24_be(data);
+}
+
+static uint16_t read_int16(struct mp4 *f)
+{
+ int8_t data[2];
+
+ read_data(f, data, 2);
+ return read_u16_be(data);
+}
+
+static uint8_t read_int8(struct mp4 *f)
+{
+ uint8_t output;
+ read_data(f, &output, 1);
+ return output;
+}
+
static bool atom_compare(int8_t a1, int8_t b1, int8_t c1, int8_t d1,
int8_t a2, int8_t b2, int8_t c2, int8_t d2)
{
f->track[f->total_tracks - 1] = para_calloc(sizeof(struct mp4_track));
}
-static uint8_t read_int8(struct mp4 *f)
-{
- uint8_t output;
- read_data(f, &output, 1);
- return output;
-}
-
-static uint32_t read_int24(struct mp4 *f)
-{
- int8_t data[4];
-
- read_data(f, data, 3);
- return read_u24_be(data);
-}
-
-static uint32_t read_int32(struct mp4 *f)
-{
- int8_t data[4];
-
- read_data(f, data, 4);
- return read_u32_be(data);
-}
-
static int32_t read_stsz(struct mp4 *f)
{
int32_t i;
return 0;
}
-static uint16_t read_int16(struct mp4 *f)
-{
- int8_t data[2];
-
- read_data(f, data, 2);
- return read_u16_be(data);
-}
-
static int32_t read_mp4a(struct mp4 *f)
{
int32_t i;