Commit 1309b26e by kimvde Committed by kim-vde

Add support for MP4 H263 atom type

#minor-release
Issue:#9158
PiperOrigin-RevId: 383660258
parent 20d67eb3
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
is malformed and should be re-encoded. is malformed and should be re-encoded.
* Improve support for truncated Ogg streams * Improve support for truncated Ogg streams
([#7608](https://github.com/google/ExoPlayer/issues/7608)). ([#7608](https://github.com/google/ExoPlayer/issues/7608)).
* Add support for MP4 H263 atom type
([#9158](https://github.com/google/ExoPlayer/issues/9158)).
* HLS: * HLS:
* Fix issue where playback of a live event could become stuck rather than * Fix issue where playback of a live event could become stuck rather than
transitioning to `STATE_ENDED` when the event ends transitioning to `STATE_ENDED` when the event ends
......
...@@ -99,6 +99,8 @@ import java.util.List; ...@@ -99,6 +99,8 @@ import java.util.List;
@SuppressWarnings("ConstantCaseForConstants") @SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_s263 = 0x73323633; public static final int TYPE_s263 = 0x73323633;
public static final int TYPE_H263 = 0x48323633;
@SuppressWarnings("ConstantCaseForConstants") @SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_d263 = 0x64323633; public static final int TYPE_d263 = 0x64323633;
......
...@@ -938,6 +938,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; ...@@ -938,6 +938,7 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
|| childAtomType == Atom.TYPE_hvc1 || childAtomType == Atom.TYPE_hvc1
|| childAtomType == Atom.TYPE_hev1 || childAtomType == Atom.TYPE_hev1
|| childAtomType == Atom.TYPE_s263 || childAtomType == Atom.TYPE_s263
|| childAtomType == Atom.TYPE_H263
|| childAtomType == Atom.TYPE_vp08 || childAtomType == Atom.TYPE_vp08
|| childAtomType == Atom.TYPE_vp09 || childAtomType == Atom.TYPE_vp09
|| childAtomType == Atom.TYPE_av01 || childAtomType == Atom.TYPE_av01
...@@ -1100,6 +1101,8 @@ import org.checkerframework.checker.nullness.compatqual.NullableType; ...@@ -1100,6 +1101,8 @@ import org.checkerframework.checker.nullness.compatqual.NullableType;
@Nullable String mimeType = null; @Nullable String mimeType = null;
if (atomType == Atom.TYPE_m1v_) { if (atomType == Atom.TYPE_m1v_) {
mimeType = MimeTypes.VIDEO_MPEG; mimeType = MimeTypes.VIDEO_MPEG;
} else if (atomType == Atom.TYPE_H263) {
mimeType = MimeTypes.VIDEO_H263;
} }
@Nullable List<byte[]> initializationData = null; @Nullable List<byte[]> initializationData = null;
......
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