From be5f249c742d9fd6505085ee686c696f92575b77 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 11 Aug 2021 21:14:06 +0200 Subject: [PATCH] mp4: Don't store the sample size in the mp4 structure. Currently it is set but never read. We need to keep the read_int16() call, however, to advance the file offset. --- mp4.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mp4.c b/mp4.c index 0834b03d..9b7d5edb 100644 --- a/mp4.c +++ b/mp4.c @@ -15,7 +15,6 @@ struct mp4_track { bool is_audio; int32_t channelCount; - int32_t sampleSize; uint16_t sampleRate; /* stsz */ @@ -552,7 +551,7 @@ static int32_t read_mp4a(struct mp4 *f) read_int32(f); /* reserved */ t->channelCount = read_int16(f); - t->sampleSize = read_int16(f); + read_int16(f); read_int16(f); read_int16(f); -- 2.39.5