@remotion/media-parser 4.0.352 → 4.0.354

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseElst = void 0;
4
4
  const parseElst = ({ iterator, size, offset, }) => {
5
- const { expectNoMoreBytes } = iterator.startBox(size - 8);
5
+ const { discardRest } = iterator.startBox(size - 8);
6
6
  const version = iterator.getUint8();
7
7
  const flags = iterator.getUint24();
8
8
  const entryCount = iterator.getUint32();
@@ -19,7 +19,7 @@ const parseElst = ({ iterator, size, offset, }) => {
19
19
  mediaRateFraction,
20
20
  });
21
21
  }
22
- expectNoMoreBytes();
22
+ discardRest();
23
23
  const result = {
24
24
  type: 'elst-box',
25
25
  version,
@@ -14,7 +14,7 @@ const parseStss = ({ iterator, offset, boxSize, }) => {
14
14
  }
15
15
  const bytesRemainingInBox = boxSize - (iterator.counter.getOffset() - offset);
16
16
  if (bytesRemainingInBox > 0) {
17
- throw new Error(`Unexpected bytes remaining in box stss`);
17
+ iterator.discard(bytesRemainingInBox);
18
18
  }
19
19
  return {
20
20
  type: 'stss-box',
@@ -1979,7 +1979,7 @@ var parseElst = ({
1979
1979
  size,
1980
1980
  offset
1981
1981
  }) => {
1982
- const { expectNoMoreBytes } = iterator.startBox(size - 8);
1982
+ const { discardRest } = iterator.startBox(size - 8);
1983
1983
  const version = iterator.getUint8();
1984
1984
  const flags = iterator.getUint24();
1985
1985
  const entryCount = iterator.getUint32();
@@ -1996,7 +1996,7 @@ var parseElst = ({
1996
1996
  mediaRateFraction
1997
1997
  });
1998
1998
  }
1999
- expectNoMoreBytes();
1999
+ discardRest();
2000
2000
  const result = {
2001
2001
  type: "elst-box",
2002
2002
  version,
@@ -5096,7 +5096,7 @@ var parseStss = ({
5096
5096
  }
5097
5097
  const bytesRemainingInBox = boxSize - (iterator.counter.getOffset() - offset);
5098
5098
  if (bytesRemainingInBox > 0) {
5099
- throw new Error(`Unexpected bytes remaining in box stss`);
5099
+ iterator.discard(bytesRemainingInBox);
5100
5100
  }
5101
5101
  return {
5102
5102
  type: "stss-box",
@@ -18187,7 +18187,7 @@ var downloadAndParseMedia = async (options) => {
18187
18187
  return returnValue;
18188
18188
  };
18189
18189
  // src/version.ts
18190
- var VERSION = "4.0.352";
18190
+ var VERSION = "4.0.354";
18191
18191
 
18192
18192
  // src/index.ts
18193
18193
  var MediaParserInternals = {
@@ -9718,7 +9718,7 @@ var parseElst = ({
9718
9718
  size,
9719
9719
  offset
9720
9720
  }) => {
9721
- const { expectNoMoreBytes } = iterator.startBox(size - 8);
9721
+ const { discardRest } = iterator.startBox(size - 8);
9722
9722
  const version = iterator.getUint8();
9723
9723
  const flags = iterator.getUint24();
9724
9724
  const entryCount = iterator.getUint32();
@@ -9735,7 +9735,7 @@ var parseElst = ({
9735
9735
  mediaRateFraction
9736
9736
  });
9737
9737
  }
9738
- expectNoMoreBytes();
9738
+ discardRest();
9739
9739
  const result = {
9740
9740
  type: "elst-box",
9741
9741
  version,
@@ -11039,7 +11039,7 @@ var parseStss = ({
11039
11039
  }
11040
11040
  const bytesRemainingInBox = boxSize - (iterator.counter.getOffset() - offset);
11041
11041
  if (bytesRemainingInBox > 0) {
11042
- throw new Error(`Unexpected bytes remaining in box stss`);
11042
+ iterator.discard(bytesRemainingInBox);
11043
11043
  }
11044
11044
  return {
11045
11045
  type: "stss-box",
@@ -9615,7 +9615,7 @@ var parseElst = ({
9615
9615
  size,
9616
9616
  offset
9617
9617
  }) => {
9618
- const { expectNoMoreBytes } = iterator.startBox(size - 8);
9618
+ const { discardRest } = iterator.startBox(size - 8);
9619
9619
  const version = iterator.getUint8();
9620
9620
  const flags = iterator.getUint24();
9621
9621
  const entryCount = iterator.getUint32();
@@ -9632,7 +9632,7 @@ var parseElst = ({
9632
9632
  mediaRateFraction
9633
9633
  });
9634
9634
  }
9635
- expectNoMoreBytes();
9635
+ discardRest();
9636
9636
  const result = {
9637
9637
  type: "elst-box",
9638
9638
  version,
@@ -10936,7 +10936,7 @@ var parseStss = ({
10936
10936
  }
10937
10937
  const bytesRemainingInBox = boxSize - (iterator.counter.getOffset() - offset);
10938
10938
  if (bytesRemainingInBox > 0) {
10939
- throw new Error(`Unexpected bytes remaining in box stss`);
10939
+ iterator.discard(bytesRemainingInBox);
10940
10940
  }
10941
10941
  return {
10942
10942
  type: "stss-box",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.352";
1
+ export declare const VERSION = "4.0.354";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.0.352';
5
+ exports.VERSION = '4.0.354';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-parser"
4
4
  },
5
5
  "name": "@remotion/media-parser",
6
- "version": "4.0.352",
6
+ "version": "4.0.354",
7
7
  "main": "dist/index.js",
8
8
  "sideEffects": false,
9
9
  "devDependencies": {
@@ -11,8 +11,8 @@
11
11
  "eslint": "9.19.0",
12
12
  "mediabunny": "1.17.0",
13
13
  "@types/bun": "1.2.8",
14
- "@remotion/example-videos": "4.0.352",
15
- "@remotion/eslint-config-internal": "4.0.352"
14
+ "@remotion/example-videos": "4.0.354",
15
+ "@remotion/eslint-config-internal": "4.0.354"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"