Merge "Only log first input reader length" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
36a66540fc
@@ -1186,11 +1186,10 @@ public final class MediaParser {
|
|||||||
// TODO: For efficiency, the same implementation should be used, by providing a
|
// TODO: For efficiency, the same implementation should be used, by providing a
|
||||||
// clearBuffers() method, or similar.
|
// clearBuffers() method, or similar.
|
||||||
long resourceLength = seekableInputReader.getLength();
|
long resourceLength = seekableInputReader.getLength();
|
||||||
if (resourceLength == -1) {
|
if (mResourceByteCount == 0) {
|
||||||
mResourceByteCount = -1;
|
// For resource byte count metric collection, we only take into account the length
|
||||||
}
|
// of the first provided input reader.
|
||||||
if (mResourceByteCount != -1) {
|
mResourceByteCount = resourceLength;
|
||||||
mResourceByteCount += resourceLength;
|
|
||||||
}
|
}
|
||||||
mExtractorInput =
|
mExtractorInput =
|
||||||
new DefaultExtractorInput(
|
new DefaultExtractorInput(
|
||||||
|
|||||||
Reference in New Issue
Block a user