Skip to content

Commit

Permalink
Map TS stream type 0x80 to H262
Browse files Browse the repository at this point in the history
Issue: #9472
PiperOrigin-RevId: 400715255
  • Loading branch information
kim-vde committed Oct 4, 2021
1 parent 912c47f commit 8488173
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
* Extractors:
* MP4: Correctly handle HEVC tracks with pixel aspect ratios other than 1.
* TS: Correctly handle HEVC tracks with pixel aspect ratios other than 1.
* TS: Map stream type 0x80 to H262
([#9472](https:/google/ExoPlayer/issues/9472)).
* Downloads and caching:
* Modify `DownloadService` behavior when `DownloadService.getScheduler`
returns `null`, or returns a `Scheduler` that does not support the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public TsPayloadReader createPayloadReader(int streamType, EsInfo esInfo) {
case TsExtractor.TS_STREAM_TYPE_DTS:
return new PesReader(new DtsReader(esInfo.language));
case TsExtractor.TS_STREAM_TYPE_H262:
case TsExtractor.TS_STREAM_TYPE_DC2_H262:
return new PesReader(new H262Reader(buildUserDataReader(esInfo)));
case TsExtractor.TS_STREAM_TYPE_H263:
return new PesReader(new H263Reader(buildUserDataReader(esInfo)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public final class TsExtractor implements Extractor {
public static final int TS_STREAM_TYPE_DVBSUBS = 0x59;

// Stream types that aren't defined by the MPEG-2 TS specification.
public static final int TS_STREAM_TYPE_DC2_H262 = 0x80;
public static final int TS_STREAM_TYPE_AIT = 0x101;

public static final int TS_SYNC_BYTE = 0x47; // First byte of each TS packet.
Expand Down

0 comments on commit 8488173

Please sign in to comment.