Avoid C++ comments, use int rather than int32_t as the standard return
type, kill a pointless cast and use plain unsigned rather than uint32_t
for the number of tag items.
ret = read_int64(f, &t->duration);
if (ret <= 0)
return ret;
ret = read_int64(f, &t->duration);
if (ret <= 0)
return ret;
- } else { //version == 0
+ } else { /* version == 0 */
uint32_t temp;
skip_bytes(f, 8); /* creation time (4), modification time (4) */
uint32_t temp;
skip_bytes(f, 8); /* creation time (4), modification time (4) */
-static int32_t read_ilst(struct mp4 *f, int32_t size)
+static int read_ilst(struct mp4 *f, int32_t size)
{
int ret;
uint64_t sumsize = 0;
{
int ret;
uint64_t sumsize = 0;
-static int32_t read_meta(struct mp4 *f, uint64_t size)
+static int read_meta(struct mp4 *f, uint64_t size)
{
int ret;
uint64_t subsize, sumsize = 0;
{
int ret;
uint64_t subsize, sumsize = 0;
{
int ret;
uint64_t total_base = f->moov_offset + 8;
{
int ret;
uint64_t total_base = f->moov_offset + 8;
- uint32_t total_size = (uint32_t) (f->moov_size - 8);
+ uint32_t total_size = f->moov_size - 8;
uint32_t new_ilst_size = 0;
void *out_buffer;
uint8_t *p_out;
uint32_t new_ilst_size = 0;
void *out_buffer;
uint8_t *p_out;
struct mp4_metadata {
struct mp4_tag *tags;
struct mp4_metadata {
struct mp4_tag *tags;
};
struct mp4; /* opaque */
};
struct mp4; /* opaque */