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

music-metadata

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

music-metadata - npm Package Compare versions

Comparing version 8.1.2 to 8.1.3

7

lib/mp4/Atom.js
import initDebug from 'debug';
import * as AtomToken from './AtomToken.js';
import { Header } from './AtomToken.js';
const debug = initDebug('music-metadata:parser:MP4:Atom');

@@ -55,4 +56,6 @@ export class Atom {

// meta has 4 bytes of padding, ignore
await tokenizer.ignore(4);
return this.readAtoms(tokenizer, dataHandler, this.getPayloadLength(remaining) - 4);
const peekHeader = await tokenizer.peekToken(Header);
const paddingLength = peekHeader.name === 'hdlr' ? 0 : 4;
await tokenizer.ignore(paddingLength);
return this.readAtoms(tokenizer, dataHandler, this.getPayloadLength(remaining) - paddingLength);
case 'mdhd': // Media header atom

@@ -59,0 +62,0 @@ case 'mvhd': // 'movie' => 'mvhd': movie header atom; child of Movie Atom

{
"name": "music-metadata",
"description": "Music metadata parser for Node.js, supporting virtual any audio and tag format.",
"version": "8.1.2",
"version": "8.1.3",
"author": {

@@ -108,3 +108,3 @@ "name": "Borewit",

"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@typescript-eslint/parser": "^5.48.1",
"c8": "^7.12.0",

@@ -111,0 +111,0 @@ "chai": "^4.3.7",

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