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
c9fc0da7
authored
Sep 20, 2019
by
aquilescanta
Committed by
Oliver Woodman
Sep 20, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
When the HLS container format is not packed audio, reset timestmap offset
Issue:#6444 PiperOrigin-RevId: 270252126
parent
47bfa069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
RELEASENOTES.md
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsMediaChunk.java
RELEASENOTES.md
View file @
c9fc0da7
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
*
Support unwrapping of nested metadata (e.g. ID3 and SCTE-35 in EMSG).
*
Support unwrapping of nested metadata (e.g. ID3 and SCTE-35 in EMSG).
*
Add
`HttpDataSource.getResponseCode`
to provide the status code associated
*
Add
`HttpDataSource.getResponseCode`
to provide the status code associated
with the most recent HTTP response.
with the most recent HTTP response.
*
Fix transitions between packed audio and non-packed audio segments in HLS
(
[
#6444
](
https://github.com/google/ExoPlayer/issues/6444
)
).
*
Fix issue where a request would be retried after encountering an error, even
*
Fix issue where a request would be retried after encountering an error, even
though the
`LoadErrorHandlingPolicy`
classified the error as fatal.
though the
`LoadErrorHandlingPolicy`
classified the error as fatal.
*
Fix initialization data handling for FLAC in MP4
*
Fix initialization data handling for FLAC in MP4
...
...
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsMediaChunk.java
View file @
c9fc0da7
...
@@ -392,6 +392,10 @@ import java.util.concurrent.atomic.AtomicInteger;
...
@@ -392,6 +392,10 @@ import java.util.concurrent.atomic.AtomicInteger;
id3Timestamp
!=
C
.
TIME_UNSET
id3Timestamp
!=
C
.
TIME_UNSET
?
timestampAdjuster
.
adjustTsTimestamp
(
id3Timestamp
)
?
timestampAdjuster
.
adjustTsTimestamp
(
id3Timestamp
)
:
startTimeUs
);
:
startTimeUs
);
}
else
{
// In case the container format changes mid-stream to non-packed-audio, we need to reset
// the timestamp offset.
output
.
setSampleOffsetUs
(
/* sampleOffsetUs= */
0L
);
}
}
output
.
init
(
uid
,
shouldSpliceIn
,
/* reusingExtractor= */
false
);
output
.
init
(
uid
,
shouldSpliceIn
,
/* reusingExtractor= */
false
);
extractor
.
init
(
output
);
extractor
.
init
(
output
);
...
...
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