mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
When the HLS container format is not packed audio, reset timestmap offset
Issue:#6444 PiperOrigin-RevId: 270252126
This commit is contained in:
parent
0cc0444af8
commit
e5f9a858d3
@ -2,6 +2,8 @@
|
||||
|
||||
### dev-v2 (not yet released) ###
|
||||
|
||||
* Fix transitions between packed audio and non-packed audio segments in HLS
|
||||
([#6444](https://github.com/google/ExoPlayer/issues/6444)).
|
||||
* DASH: Support negative @r values in segment timelines
|
||||
([#1787](https://github.com/google/ExoPlayer/issues/1787)).
|
||||
* Add `allowedCapturePolicy` field to `AudioAttributes` wrapper to allow to
|
||||
|
@ -392,6 +392,10 @@ import java.util.concurrent.atomic.AtomicInteger;
|
||||
id3Timestamp != C.TIME_UNSET
|
||||
? timestampAdjuster.adjustTsTimestamp(id3Timestamp)
|
||||
: 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);
|
||||
extractor.init(output);
|
||||
|
Loading…
x
Reference in New Issue
Block a user