@disoul/mp4box
Advanced tools
Comparing version 0.3.16-fix.17 to 0.3.16-fix.18
{ | ||
"name": "@disoul/mp4box", | ||
"version": "0.3.16-fix.17", | ||
"version": "0.3.16-fix.18", | ||
"description": "JavaScript version of GPAC's MP4Box tool", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -189,2 +189,8 @@ ISOFile.prototype.add = BoxParser.Box.prototype.add; | ||
ISOFile.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(); | ||
@@ -205,3 +211,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]); | ||
@@ -208,0 +214,0 @@ return moof; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1636167
26582