Skip to content

Commit

Permalink
Deploying to gh-pages from @ 13f3800 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
DenizUgur committed Nov 1, 2024
1 parent e15adff commit 003640a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dist/mp4box.all.js
Original file line number Diff line number Diff line change
Expand Up @@ -8236,7 +8236,6 @@ ISOFile.prototype.flattenItemInfo = function() {
case 0: // offset into the file referenced by the data reference index
break;
case 1: // offset into the idat box of this meta box
Log.warn("Item storage with construction_method : not supported");
break;
case 2: // offset into another item
Log.warn("Item storage with construction_method : not supported");
Expand All @@ -8247,6 +8246,9 @@ ISOFile.prototype.flattenItemInfo = function() {
for (j = 0; j < itemloc.extents.length; j++) {
item.extents[j] = {};
item.extents[j].offset = itemloc.extents[j].extent_offset + itemloc.base_offset;
if (itemloc.construction_method == 1) {
item.extents[j].offset += meta.idat.start + meta.idat.hdr_size;
}
item.extents[j].length = itemloc.extents[j].extent_length;
item.extents[j].alreadyRead = 0;
item.size += item.extents[j].length;
Expand Down
4 changes: 2 additions & 2 deletions dist/mp4box.all.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mp4box.all.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mp4box.simple.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/isofile-item-processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ ISOFile.prototype.flattenItemInfo = function() {
case 0: // offset into the file referenced by the data reference index
break;
case 1: // offset into the idat box of this meta box
Log.warn("Item storage with construction_method : not supported");
break;
case 2: // offset into another item
Log.warn("Item storage with construction_method : not supported");
Expand All @@ -62,6 +61,9 @@ ISOFile.prototype.flattenItemInfo = function() {
for (j = 0; j < itemloc.extents.length; j++) {
item.extents[j] = {};
item.extents[j].offset = itemloc.extents[j].extent_offset + itemloc.base_offset;
if (itemloc.construction_method == 1) {
item.extents[j].offset += meta.idat.start + meta.idat.hdr_size;
}
item.extents[j].length = itemloc.extents[j].extent_length;
item.extents[j].alreadyRead = 0;
item.size += item.extents[j].length;
Expand Down

0 comments on commit 003640a

Please sign in to comment.