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

mp4box

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mp4box - npm Package Compare versions

Comparing version 0.4.1 to 0.4.4

.github/workflows/grunt.yml

2

package.json
{
"name": "mp4box",
"version": "0.4.1",
"version": "0.4.4",
"description": "JavaScript version of GPAC's MP4Box tool",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,3 +5,2 @@ MP4Box.js

[![Build Status](https://travis-ci.org/gpac/mp4box.js.svg?branch=master)](https://travis-ci.org/gpac/mp4box.js)
[![CircleCI](https://circleci.com/gh/gpac/mp4box.js.svg?style=svg)](https://circleci.com/gh/gpac/mp4box.js)
[![Coverage Status](https://coveralls.io/repos/github/gpac/mp4box.js/badge.svg?branch=master)](https://coveralls.io/github/gpac/mp4box.js?branch=master)

@@ -24,2 +23,3 @@ [![Dependency Status](https://david-dm.org/gpac/mp4box.js.svg)](https://david-dm.org/gpac/mp4box.js)

* [A file inspection tool](./test/filereader.html)
* [A basic file segmenter](./test/file-segmenter.html)
* [A file diff tool](./test/filediff.html)

@@ -26,0 +26,0 @@ * [An MSE-based AVIF viewing tool](./test/mse-avif-viewer.html)

@@ -191,3 +191,3 @@ /**

} else {
log("MultiBufferStream", ""+this.buffers.length+" stored buffer(s) ("+used+"/"+total+" bytes): "+bufferedString);
log("MultiBufferStream", ""+this.buffers.length+" stored buffer(s) ("+used+"/"+total+" bytes), continuous ranges: "+bufferedString);
}

@@ -194,0 +194,0 @@ }

@@ -196,2 +196,8 @@ ISOFile.prototype.add = BoxParser.Box.prototype.add;

ISOFile.prototype.createSingleSampleMoof = function(sample) {
var sample_flags = 0;
if (sample.is_sync)
sample_flags = (1 << 25); // sample_depends_on_none (I picture)
else
sample_flags = (1 << 16); // non-sync
var moof = new BoxParser.moofBox();

@@ -212,3 +218,3 @@ moof.add("mfhd").set("sequence_number", this.nextMoofNumber);

.set("sample_size",[sample.size])
.set("sample_flags",[0])
.set("sample_flags",[sample_flags])
.set("sample_composition_time_offset", [sample.cts - sample.dts]);

@@ -215,0 +221,0 @@ return moof;

@@ -83,3 +83,3 @@ ISOFile.prototype.items = [];

var propEntry = association.props[j];
if (propEntry.property_index > 0) {
if (propEntry.property_index > 0 && propEntry.property_index-1 < meta.iprp.ipco.boxes.length) {
var propbox = meta.iprp.ipco.boxes[propEntry.property_index-1];

@@ -86,0 +86,0 @@ item.properties[propbox.type] = propbox;

@@ -47,3 +47,3 @@ var MP4BoxStream = function(arrayBuffer) {

} else {
res = this.dataview.getUint8(this.position);
res = this.dataview.getUint8(this.position);
}

@@ -55,3 +55,3 @@ break;

} else {
res = this.dataview.getUint16(this.position);
res = this.dataview.getUint16(this.position);
}

@@ -64,4 +64,4 @@ break;

res = this.dataview.getUint8(this.position) << 16;
res |= this.dataview.getUint8(this.position) << 8;
res |= this.dataview.getUint8(this.position);
res |= this.dataview.getUint8(this.position+1) << 8;
res |= this.dataview.getUint8(this.position+2);
}

@@ -73,3 +73,3 @@ break;

} else {
res = this.dataview.getUint32(this.position);
res = this.dataview.getUint32(this.position);
}

@@ -81,8 +81,8 @@ break;

} else {
res = this.dataview.getUint32(this.position) << 32;
res |= this.dataview.getUint32(this.position);
res = this.dataview.getUint32(this.position) << 32;
res |= this.dataview.getUint32(this.position+4);
}
break;
default:
throw ("readInt method not implemented for size: "+size);
throw ("readInt method not implemented for size: "+size);
}

@@ -89,0 +89,0 @@ this.position+= size;

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