Skip to content

Commit

Permalink
Fix av desync by forcing audio demuxing to wait for main initPTS
Browse files Browse the repository at this point in the history
  • Loading branch information
jungdaniel committed Jul 21, 2020
1 parent 489fbe3 commit 0ffbe3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/audio-stream-controller.js
Expand Up @@ -523,7 +523,7 @@ class AudioStreamController extends BaseStreamController {
// If not we need to wait for it
let initPTS = this.initPTS[cc];
let initSegmentData = details.initSegment ? details.initSegment.data : [];
if (details.initSegment || initPTS !== undefined) {
if (initPTS !== undefined) {
this.pendingBuffering = true;
logger.log(`Demuxing ${sn} of [${details.startSN} ,${details.endSN}],track ${trackId}`);
// time Offset is accurate if level PTS is known, or if playlist is not sliding (not live)
Expand Down

0 comments on commit 0ffbe3d

Please sign in to comment.