prism-media
Advanced tools
Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "prism-media", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Easy-to-use stream-based media transcoding", | ||
@@ -34,3 +34,3 @@ "main": "src/index.js", | ||
"jest": "^28.1.2", | ||
"jsdoc": "^3.6.10" | ||
"jsdoc": "^4.0.2" | ||
}, | ||
@@ -43,3 +43,3 @@ "jest": { | ||
"peerDependencies": { | ||
"@discordjs/opus": "^0.8.0", | ||
"@discordjs/opus": ">=0.8.0 <1.0.0", | ||
"ffmpeg-static": "^5.0.2 || ^4.2.7 || ^3.0.0 || ^2.4.0", | ||
@@ -46,0 +46,0 @@ "node-opus": "^0.3.3", |
@@ -186,3 +186,3 @@ // Partly based on https://github.com/Rantanen/node-opus/blob/master/lib/Encoder.js | ||
const signature = chunk.slice(0, 8); | ||
if (signature.equals(OPUS_HEAD)) { | ||
if (chunk.length >= 8 && signature.equals(OPUS_HEAD)) { | ||
this.emit('format', { | ||
@@ -200,3 +200,3 @@ channels: this._options.channels, | ||
} | ||
if (signature.equals(OPUS_TAGS)) { | ||
if (chunk.length >= 8 && signature.equals(OPUS_TAGS)) { | ||
this.emit('tags', chunk); | ||
@@ -203,0 +203,0 @@ return done(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45105