Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prism-media

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prism-media - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

6

package.json
{
"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();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc