Disambiguate comment in Ac3Reader

PiperOrigin-RevId: 239810798
This commit is contained in:
aquilescanta 2019-03-22 16:43:19 +00:00 committed by Oliver Woodman
parent e5aed73fba
commit cdd433acda

View file

@ -201,7 +201,7 @@ public final class Ac3Reader implements ElementaryStreamReader {
output.format(format);
}
sampleSize = frameInfo.frameSize;
// In this class a sample is an access unit (syncframe in AC-3), but the MediaFormat sample rate
// In this class a sample is an access unit (syncframe in AC-3), but Format#sampleRate
// specifies the number of PCM audio samples per second.
sampleDurationUs = C.MICROS_PER_SECOND * frameInfo.sampleCount / format.sampleRate;
}