New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codec-parser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codec-parser - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "codec-parser",
"version": "1.0.0",
"version": "1.0.1",
"description": "Library that parses raw data from audio codecs into frames containing data, header values, duration, and other information.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -170,9 +170,11 @@ # Codec Parser

* `codecFrames`: Array of `CodecFrame`(s) contained within this `OggPage`.
* `crc32`: CRC-32 hash of the frame data using the Ogg formula / polynomial.
* `data`: `Uint8Array` containing the page segments within the ogg page.
* `duration`: Audio duration in milliseconds contained within this `OggPage`.
* `isContinuedPacket`: Boolean indicating if this `OggPage` is part of a continued packet.
* `isFirstPage`: Boolean indicating if this `OggPage` is the first page in the Ogg stream.
* `isLastPage`: Boolean indicating if this this `OggPage` is the final page in the Ogg stream.
* `pageChecksum`: CRC-32 hash of the frame data using the Ogg formula / polynomial.
* `pageSequenceNumber`: Page sequence number within the Ogg stream.
* `rawData`: `Uint8Array` Total data of the `OggPage`.
* `samples`: Total number of audio samples contained within the `OggPage`.
* `streamSerialNumber`: Serial number of the Ogg stream.

@@ -179,0 +181,0 @@ * `totalBytesOut`: Total bytes of codec data output by `CodecParer` at the end of this ogg page.

@@ -130,7 +130,9 @@ /* Copyright 2020-2021 Ethan Halsall

frames.forEach((frame) => {
// Ogg container
if (frame.codecFrames) {
frame.codecFrames.forEach((codecFrame) =>
this._mapFrameStats(codecFrame)
);
// Ogg container
frame.codecFrames.forEach((codecFrame) => {
frame.duration += codecFrame.duration;
frame.samples += codecFrame.samples;
this._mapFrameStats(codecFrame);
});

@@ -137,0 +139,0 @@ frame.totalSamples = this._totalSamples;

@@ -53,2 +53,4 @@ /* Copyright 2020-2021 Ethan Halsall

this.absoluteGranulePosition = oggPage.absoluteGranulePosition;
this.crc32 = oggPage.pageChecksum;
this.duration = 0;
this.isContinuedPacket = oggPage.isContinuedPacket;

@@ -58,3 +60,3 @@ this.isFirstPage = oggPage.isFirstPage;

this.pageSequenceNumber = oggPage.pageSequenceNumber;
this.pageChecksum = oggPage.pageChecksum;
this.samples = 0;
this.streamSerialNumber = oggPage.streamSerialNumber;

@@ -61,0 +63,0 @@ }

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