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
1554db16
authored
Dec 11, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Skip bad PES packets
Issue: #200
parent
035671b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
library/src/main/java/com/google/android/exoplayer/hls/TsExtractor.java
library/src/main/java/com/google/android/exoplayer/hls/TsExtractor.java
View file @
1554db16
...
...
@@ -448,13 +448,15 @@ public final class TsExtractor {
private
void
readPacketStart
()
{
int
startCodePrefix
=
pesBuffer
.
readBits
(
24
);
if
(
startCodePrefix
!=
0x000001
)
{
// Error.
}
Log
.
e
(
TAG
,
"Unexpected start code prefix: "
+
startCodePrefix
);
pesBuffer
.
reset
();
packetLength
=
-
1
;
}
else
{
// TODO: Read and use stream_id.
// Skip stream_id.
pesBuffer
.
skipBits
(
8
);
pesBuffer
.
skipBits
(
8
);
// Skip stream_id.
packetLength
=
pesBuffer
.
readBits
(
16
);
}
}
private
void
readPacketBody
()
{
// Skip some fields/flags.
...
...
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