From: Andre Noll Date: Wed, 11 Aug 2021 19:14:06 +0000 (+0200) Subject: mp4: Don't store the sample size in the mp4 structure. X-Git-Tag: v0.7.1~7^2~94 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=be5f249c742d9fd6505085ee686c696f92575b77;p=paraslash.git 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. --- 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);