]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mp4.c
mp4: Return proper types for sample rate and count.
[paraslash.git] / mp4.c
diff --git a/mp4.c b/mp4.c
index b12cbbf48c121c83c8b1bf40c92196fa5d051841..1c33a176e2fafd1d174017cea25edcfba536a5fb 100644 (file)
--- a/mp4.c
+++ b/mp4.c
@@ -710,7 +710,7 @@ int mp4_get_sample_size(const struct mp4 *f, uint32_t sample, uint32_t *result)
        return 1;
 }
 
-uint32_t mp4_get_sample_rate(const struct mp4 *f)
+uint16_t mp4_get_sample_rate(const struct mp4 *f)
 {
        return f->track.sample_rate;
 }
@@ -720,10 +720,10 @@ uint16_t mp4_get_channel_count(const struct mp4 *f)
        return f->track.channel_count;
 }
 
-int32_t mp4_num_samples(const struct mp4 *f)
+uint32_t mp4_num_samples(const struct mp4 *f)
 {
        const struct mp4_track *t = &f->track;
-       int32_t total = 0;
+       uint32_t total = 0;
 
        for (uint32_t n = 0; n < t->stts_entry_count; n++)
                total += t->stts_sample_count[n];