Skip to content

Commit

Permalink
Merge pull request #2832 from jungdaniel/bugfix/live-av-desync
Browse files Browse the repository at this point in the history
Fix initial audio video desync for fMP4
  • Loading branch information
robwalch committed Jul 23, 2020
2 parents 489fbe3 + 0ffbe3d commit bf01890
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 bf01890

Please sign in to comment.