Skip to content
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
73679d4
package.json: Update devDependencies
xqq Dec 14, 2018
8c1bed1
v1.5.0
xqq Dec 14, 2018
90b3463
Use AbortController to abort fetch to fix aborting bug (#448)
wmlgl Apr 18, 2021
6924c82
FetchStreamLoader: Fix aborting problem before entering _pump() (#535)
wmlgl Apr 18, 2021
9ea4b42
FetchStreamLoader: Adjust details for using AbortController
xqq Apr 23, 2021
4485c09
README.md: Mention mpegts.js
xqq Apr 23, 2021
26d00d9
use a new silent frame insert algorithm for audio remux (#354)
jamken2026 Apr 28, 2021
3cd67b3
feat: skip tag which has error timestamp
Dcatfly Jul 3, 2021
1e8a0d9
Revert "feat: skip tag which has error timestamp"
xqq Jul 5, 2021
a739317
Migrate build system to Webpack 5 + TypeScript compiler
xqq Jul 17, 2021
a41efd7
transmuxer: Migrate to webworkify-webpack
xqq Jul 17, 2021
32067ab
src/flv.js: Adapt version tagging by webpack
xqq Jul 17, 2021
f5d2216
README.md: Update build guide
xqq Jul 17, 2021
a2364bc
README.md: Update
xqq Jul 17, 2021
a211168
README.md: Fix typos
xqq Jul 17, 2021
09982ef
flv-demuxer: Implement pull request #671
xqq Jul 17, 2021
351a869
src/flv.js: Update comment
xqq Jul 17, 2021
da286e0
package.json: Bump to v1.6.0 & remove incorrect fields
xqq Jul 17, 2021
61d2353
.babelrc: Remove
xqq Jul 17, 2021
18aa6a7
gulpfile.js: Remove outdated file
xqq Jul 17, 2021
cc7db07
webpack.config.js: Fix ES5 compatibility
xqq Jul 28, 2021
9671d9c
package.json: Bump to v1.6.1
xqq Jul 28, 2021
3d9a5ea
Revert "flv-demuxer: Implement pull request #671"
xqq Sep 13, 2021
4234308
package.json: Bump to v1.6.2
xqq Sep 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "feat: skip tag which has error timestamp"
This reverts commit 3cd67b3.
  • Loading branch information
xqq committed Jul 5, 2021
commit 1e8a0d9b7d037ad76918aea8170324877b98e38b
10 changes: 0 additions & 10 deletions src/demux/flv-demuxer.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class FLVDemuxer {

this._naluLengthSize = 4;
this._timestampBase = 0; // int32, in milliseconds
this._lastTimestamp = 0;
this._timescale = 1000;
this._duration = 0; // int32, in milliseconds
this._durationOverrided = false;
Expand Down Expand Up @@ -122,7 +121,6 @@ class FLVDemuxer {
this._videoMetadata = null;
this._videoTrack = null;
this._audioTrack = null;
this._lastTimestamp = 0;

this._onError = null;
this._onMediaInfo = null;
Expand Down Expand Up @@ -330,14 +328,6 @@ class FLVDemuxer {

let timestamp = ts0 | (ts1 << 8) | (ts2 << 16) | (ts3 << 24);

if (timestamp < this._lastTimestamp) {
Log.w(this.TAG, `Current tag's timestamp(${timestamp}) is smaller than last timestamp(${this._lastTimestamp}), skipped`);
// consume the whole tag (skip it)
offset += 11 + dataSize + 4;
continue;
}
this._lastTimestamp = timestamp;

let streamId = v.getUint32(7, !le) & 0x00FFFFFF;
if (streamId !== 0) {
Log.w(this.TAG, 'Meet tag which has StreamID != 0!');
Expand Down