music-metadata
Advanced tools
Comparing version 8.1.2 to 8.1.3
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", |
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
455703
11216