Skip to content

Instantly share code, notes, and snippets.

Avatar
😁
Happy

sky0014 sky0014

😁
Happy
View GitHub Profile
@sky0014
sky0014 / flv-demuxer.ts
Created Mar 1, 2019
Large timestamp gap detected; may cause AV sync to drift check and aac frame generate code.
View flv-demuxer.ts
// AAC raw frame data
let dts = this._timestampBase + ts;
// check large timestamp gap caused av drift
if (this._expectTsAudio === -1) {
this._expectTsAudio = dts; // set base ts
}
let generated = false;
const delta = dts - this._expectTsAudio;
You can’t perform that action at this time.