Map TS stream type 0x80 to H262

Issue: #9472
PiperOrigin-RevId: 400715255
This commit is contained in:
kimvde 2021-10-04 15:26:26 +01:00 committed by kim-vde
parent 912c47ff6f
commit 84881739ee
3 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,8 @@
* Extractors: * Extractors:
* MP4: Correctly handle HEVC tracks with pixel aspect ratios other than 1. * 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: Correctly handle HEVC tracks with pixel aspect ratios other than 1.
* TS: Map stream type 0x80 to H262
([#9472](https://github.com/google/ExoPlayer/issues/9472)).
* Downloads and caching: * Downloads and caching:
* Modify `DownloadService` behavior when `DownloadService.getScheduler` * Modify `DownloadService` behavior when `DownloadService.getScheduler`
returns `null`, or returns a `Scheduler` that does not support the returns `null`, or returns a `Scheduler` that does not support the

View File

@ -161,6 +161,7 @@ public final class DefaultTsPayloadReaderFactory implements TsPayloadReader.Fact
case TsExtractor.TS_STREAM_TYPE_DTS: case TsExtractor.TS_STREAM_TYPE_DTS:
return new PesReader(new DtsReader(esInfo.language)); return new PesReader(new DtsReader(esInfo.language));
case TsExtractor.TS_STREAM_TYPE_H262: case TsExtractor.TS_STREAM_TYPE_H262:
case TsExtractor.TS_STREAM_TYPE_DC2_H262:
return new PesReader(new H262Reader(buildUserDataReader(esInfo))); return new PesReader(new H262Reader(buildUserDataReader(esInfo)));
case TsExtractor.TS_STREAM_TYPE_H263: case TsExtractor.TS_STREAM_TYPE_H263:
return new PesReader(new H263Reader(buildUserDataReader(esInfo))); return new PesReader(new H263Reader(buildUserDataReader(esInfo)));

View File

@ -97,6 +97,7 @@ public final class TsExtractor implements Extractor {
public static final int TS_STREAM_TYPE_DVBSUBS = 0x59; public static final int TS_STREAM_TYPE_DVBSUBS = 0x59;
// Stream types that aren't defined by the MPEG-2 TS specification. // 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_STREAM_TYPE_AIT = 0x101;
public static final int TS_SYNC_BYTE = 0x47; // First byte of each TS packet. public static final int TS_SYNC_BYTE = 0x47; // First byte of each TS packet.