From: Andre Noll Date: Wed, 18 Aug 2021 13:02:43 +0000 (+0200) Subject: mp4: Make most members of struct mp4_track unsigned. X-Git-Tag: v0.7.1~7^2~65 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b4caa4470bdb2799ea54978758b677edd9805ee1;p=paraslash.git 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. --- 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;