Use getDeclaredLength() for setting length of AssetFileDescriptor

Should have been part of the change: 0ac90855b4.

PiperOrigin-RevId: 655873821
This commit is contained in:
rohks 2024-07-25 02:02:20 -07:00 committed by Copybara-Service
parent d160aa2520
commit 80202bc9f2

View File

@ -207,7 +207,7 @@ public final class MediaExtractorCompat {
setDataSource(
assetFileDescriptor.getFileDescriptor(),
assetFileDescriptor.getStartOffset(),
assetFileDescriptor.getLength());
assetFileDescriptor.getDeclaredLength());
}
}