Skip to content

Commit

Permalink
Add support for MP4 H263 atom type
Browse files Browse the repository at this point in the history
#minor-release
Issue:#9158
PiperOrigin-RevId: 383660258
  • Loading branch information
kim-vde committed Jul 9, 2021
1 parent 20d67eb commit 1309b26
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
is malformed and should be re-encoded.
* Improve support for truncated Ogg streams
([#7608](https://github.com/google/ExoPlayer/issues/7608)).
* Add support for MP4 H263 atom type
([#9158](https://github.com/google/ExoPlayer/issues/9158)).
* HLS:
* Fix issue where playback of a live event could become stuck rather than
transitioning to `STATE_ENDED` when the event ends
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_s263 = 0x73323633;

public static final int TYPE_H263 = 0x48323633;

@SuppressWarnings("ConstantCaseForConstants")
public static final int TYPE_d263 = 0x64323633;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ private static StsdData parseStsd(
|| childAtomType == Atom.TYPE_hvc1
|| childAtomType == Atom.TYPE_hev1
|| childAtomType == Atom.TYPE_s263
|| childAtomType == Atom.TYPE_H263
|| childAtomType == Atom.TYPE_vp08
|| childAtomType == Atom.TYPE_vp09
|| childAtomType == Atom.TYPE_av01
Expand Down Expand Up @@ -1100,6 +1101,8 @@ private static void parseVideoSampleEntry(
@Nullable String mimeType = null;
if (atomType == Atom.TYPE_m1v_) {
mimeType = MimeTypes.VIDEO_MPEG;
} else if (atomType == Atom.TYPE_H263) {
mimeType = MimeTypes.VIDEO_H263;
}

@Nullable List<byte[]> initializationData = null;
Expand Down

0 comments on commit 1309b26

Please sign in to comment.