Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
50d5cbea
authored
Dec 16, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Don't treat network_PID as program_map_PID.
Issue: #1068 Issue: #1001
parent
cbb2cfbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
library/src/main/java/com/google/android/exoplayer/extractor/ts/TsExtractor.java
library/src/main/java/com/google/android/exoplayer/extractor/ts/TsExtractor.java
View file @
50d5cbea
...
...
@@ -220,9 +220,14 @@ public final class TsExtractor implements Extractor {
int
programCount
=
(
sectionLength
-
9
)
/
4
;
for
(
int
i
=
0
;
i
<
programCount
;
i
++)
{
data
.
readBytes
(
patScratch
,
4
);
patScratch
.
skipBits
(
19
);
// program_number (16), reserved (3)
int
pid
=
patScratch
.
readBits
(
13
);
tsPayloadReaders
.
put
(
pid
,
new
PmtReader
());
int
programNumber
=
patScratch
.
readBits
(
16
);
patScratch
.
skipBits
(
3
);
// reserved (3)
if
(
programNumber
==
0
)
{
patScratch
.
skipBits
(
13
);
// network_PID (13)
}
else
{
int
pid
=
patScratch
.
readBits
(
13
);
tsPayloadReaders
.
put
(
pid
,
new
PmtReader
());
}
}
// Skip CRC_32.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment