@volcengine/veplayer-plugin 2.5.0 → 2.5.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1538,7 +1538,7 @@ util.getCurrentTimeByOffset = function(offsetTime, segments) {
1538
1538
  }
1539
1539
  return offsetTime;
1540
1540
  };
1541
- var version = "3.0.21-rc.2";
1541
+ var version = "3.0.21-rc.5";
1542
1542
  var ERROR_MAP = {
1543
1543
  1: 5101,
1544
1544
  2: 5102,
@@ -7666,10 +7666,14 @@ var FlvDemuxer = /* @__PURE__ */ function() {
7666
7666
  key: "_parseG711",
7667
7667
  value: function _parseG711(data, pts, format) {
7668
7668
  var track = this.audioTrack;
7669
+ var audioData = data.subarray(1);
7670
+ if (audioData.byteLength < 1)
7671
+ return;
7672
+ var sample = new AudioSample(pts, audioData);
7669
7673
  track.codecType = format === 7 ? AudioCodecType.G711PCMA : AudioCodecType.G711PCMU;
7670
7674
  track.sampleRate = 8e3;
7671
7675
  track.codec = track.codecType;
7672
- track.samples.push(new AudioSample(pts, data.subarray(1)));
7676
+ track.samples.push(sample);
7673
7677
  }
7674
7678
  }, {
7675
7679
  key: "_parseAac",
@@ -10967,7 +10971,7 @@ var Flv = /* @__PURE__ */ function(_EventEmitter) {
10967
10971
  _createClass$4(Flv2, [{
10968
10972
  key: "version",
10969
10973
  get: function get() {
10970
- return "3.0.21-rc.2";
10974
+ return "3.0.21-rc.5";
10971
10975
  }
10972
10976
  }, {
10973
10977
  key: "isLive",