From b4caa4470bdb2799ea54978758b677edd9805ee1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 18 Aug 2021 15:02:43 +0200 Subject: [PATCH] mp4: Make most members of struct mp4_track unsigned. All of these get initialized by reading an unsigned 32 bit value from the file, so they should also be unsigned. --- mp4.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/mp4.c b/mp4.c index 03f80ba9..61feafdf 100644 --- a/mp4.c +++ b/mp4.c @@ -14,28 +14,28 @@ struct mp4_track { bool is_audio; - int32_t channelCount; + uint32_t channelCount; uint16_t sampleRate; /* stsz */ - int32_t stsz_sample_size; - int32_t stsz_sample_count; - int32_t *stsz_table; + uint32_t stsz_sample_size; + uint32_t stsz_sample_count; + uint32_t *stsz_table; /* stts */ - int32_t stts_entry_count; - int32_t *stts_sample_count; - int32_t *stts_sample_delta; + uint32_t stts_entry_count; + uint32_t *stts_sample_count; + uint32_t *stts_sample_delta; /* stsc */ - int32_t stsc_entry_count; - int32_t *stsc_first_chunk; - int32_t *stsc_samples_per_chunk; - int32_t *stsc_sample_desc_index; + uint32_t stsc_entry_count; + uint32_t *stsc_first_chunk; + uint32_t *stsc_samples_per_chunk; + uint32_t *stsc_sample_desc_index; /* stsc */ - int32_t stco_entry_count; - int32_t *stco_chunk_offset; + uint32_t stco_entry_count; + uint32_t *stco_chunk_offset; uint32_t timeScale; uint64_t duration; -- 2.39.5