Commit 1cd08519 by kim-vde

Merge pull request #8257 from xufuji456:dev-v2

PiperOrigin-RevId: 344057097
parents f04941ed 6682e623
...@@ -59,6 +59,8 @@ ...@@ -59,6 +59,8 @@
* Matroska: Add support for 32-bit floating point PCM, and 8-bit and * Matroska: Add support for 32-bit floating point PCM, and 8-bit and
16-bit big endian integer PCM 16-bit big endian integer PCM
([#8142](https://github.com/google/ExoPlayer/issues/8142)). ([#8142](https://github.com/google/ExoPlayer/issues/8142)).
* MP4: Add support for mpeg1 video box
([#8257](https://github.com/google/ExoPlayer/issues/8257)).
* DRM: * DRM:
* Fix playback failure when switching from PlayReady protected content to * Fix playback failure when switching from PlayReady protected content to
Widevine or Clearkey protected content in a playlist. Widevine or Clearkey protected content in a playlist.
......
...@@ -281,6 +281,9 @@ import java.util.List; ...@@ -281,6 +281,9 @@ import java.util.List;
public static final int TYPE_TTML = 0x54544d4c; public static final int TYPE_TTML = 0x54544d4c;
@SuppressWarnings("ConstantCaseForConstants") @SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_m1v_ = 0x6d317620;
@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_mp4v = 0x6d703476; public static final int TYPE_mp4v = 0x6d703476;
@SuppressWarnings("ConstantCaseForConstants") @SuppressWarnings("ConstantCaseForConstants")
......
...@@ -853,6 +853,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; ...@@ -853,6 +853,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
if (childAtomType == Atom.TYPE_avc1 if (childAtomType == Atom.TYPE_avc1
|| childAtomType == Atom.TYPE_avc3 || childAtomType == Atom.TYPE_avc3
|| childAtomType == Atom.TYPE_encv || childAtomType == Atom.TYPE_encv
|| childAtomType == Atom.TYPE_m1v_
|| childAtomType == Atom.TYPE_mp4v || childAtomType == Atom.TYPE_mp4v
|| childAtomType == Atom.TYPE_hvc1 || childAtomType == Atom.TYPE_hvc1
|| childAtomType == Atom.TYPE_hev1 || childAtomType == Atom.TYPE_hev1
...@@ -993,8 +994,12 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; ...@@ -993,8 +994,12 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
// drmInitData = null; // drmInitData = null;
// } // }
@Nullable List<byte[]> initializationData = null;
@Nullable String mimeType = null; @Nullable String mimeType = null;
if (atomType == Atom.TYPE_m1v_) {
mimeType = MimeTypes.VIDEO_MPEG;
}
@Nullable List<byte[]> initializationData = null;
@Nullable String codecs = null; @Nullable String codecs = null;
@Nullable byte[] projectionData = null; @Nullable byte[] projectionData = null;
@C.StereoMode @C.StereoMode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment