Merge "Add subsample offset to the exposed MediaFormat" into rvc-dev am: ce0cc66945

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11986786

Change-Id: I7c4808d48b57fe0277db351a0da13a1a07152004
This commit is contained in:
TreeHugger Robot
2020-06-25 21:17:33 +00:00
committed by Automerger Merge Worker

View File

@@ -1920,8 +1920,10 @@ public final class MediaParser {
// format for convenient use from ExoPlayer.
result.setString("crypto-mode-fourcc", format.drmInitData.schemeType);
}
if (format.subsampleOffsetUs != Format.OFFSET_SAMPLE_RELATIVE) {
result.setLong("subsample-offset-us-long", format.subsampleOffsetUs);
}
// LACK OF SUPPORT FOR:
// format.containerMimeType;
// format.id;
// format.metadata;
// format.stereoMode;