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

This commit is contained in:
TreeHugger Robot
2020-06-24 23:01:56 +00:00
committed by Android (Google) Code Review

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;