@remotion/media-parser 4.0.341 → 4.0.345

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.
@@ -8,7 +8,8 @@ const parseList = ({ state, }) => {
8
8
  const startOffset = iterator.counter.getOffset();
9
9
  const type = iterator.getByteString(4, false);
10
10
  if (type !== 'INFO') {
11
- throw new Error(`Only supporting LIST INFO, but got ${type}`);
11
+ iterator.discard(ckSize - 4);
12
+ return Promise.resolve(null);
12
13
  }
13
14
  const metadata = [];
14
15
  const remainingBytes = () => ckSize - (iterator.counter.getOffset() - startOffset);
@@ -33,7 +33,7 @@ const parseWav = (state) => {
33
33
  if (type === 'id3') {
34
34
  return (0, parse_id3_1.parseId3)({ state });
35
35
  }
36
- if (type === 'junk' || type === 'fllr' || type === 'bext') {
36
+ if (type === 'junk' || type === 'fllr' || type === 'bext' || type === 'cue') {
37
37
  return (0, parse_junk_1.parseJunk)({ state });
38
38
  }
39
39
  if (type === 'fact') {
@@ -15444,7 +15444,8 @@ var parseList = ({
15444
15444
  const startOffset = iterator.counter.getOffset();
15445
15445
  const type = iterator.getByteString(4, false);
15446
15446
  if (type !== "INFO") {
15447
- throw new Error(`Only supporting LIST INFO, but got ${type}`);
15447
+ iterator.discard(ckSize - 4);
15448
+ return Promise.resolve(null);
15448
15449
  }
15449
15450
  const metadata = [];
15450
15451
  const remainingBytes = () => ckSize - (iterator.counter.getOffset() - startOffset);
@@ -15532,7 +15533,7 @@ var parseWav = (state) => {
15532
15533
  if (type === "id3") {
15533
15534
  return parseId32({ state });
15534
15535
  }
15535
- if (type === "junk" || type === "fllr" || type === "bext") {
15536
+ if (type === "junk" || type === "fllr" || type === "bext" || type === "cue") {
15536
15537
  return parseJunk({ state });
15537
15538
  }
15538
15539
  if (type === "fact") {
@@ -18186,7 +18187,7 @@ var downloadAndParseMedia = async (options) => {
18186
18187
  return returnValue;
18187
18188
  };
18188
18189
  // src/version.ts
18189
- var VERSION = "4.0.341";
18190
+ var VERSION = "4.0.345";
18190
18191
 
18191
18192
  // src/index.ts
18192
18193
  var MediaParserInternals = {
@@ -15175,7 +15175,8 @@ var parseList = ({
15175
15175
  const startOffset = iterator.counter.getOffset();
15176
15176
  const type = iterator.getByteString(4, false);
15177
15177
  if (type !== "INFO") {
15178
- throw new Error(`Only supporting LIST INFO, but got ${type}`);
15178
+ iterator.discard(ckSize - 4);
15179
+ return Promise.resolve(null);
15179
15180
  }
15180
15181
  const metadata = [];
15181
15182
  const remainingBytes = () => ckSize - (iterator.counter.getOffset() - startOffset);
@@ -15263,7 +15264,7 @@ var parseWav = (state) => {
15263
15264
  if (type === "id3") {
15264
15265
  return parseId32({ state });
15265
15266
  }
15266
- if (type === "junk" || type === "fllr" || type === "bext") {
15267
+ if (type === "junk" || type === "fllr" || type === "bext" || type === "cue") {
15267
15268
  return parseJunk({ state });
15268
15269
  }
15269
15270
  if (type === "fact") {
@@ -15044,7 +15044,8 @@ var parseList = ({
15044
15044
  const startOffset = iterator.counter.getOffset();
15045
15045
  const type = iterator.getByteString(4, false);
15046
15046
  if (type !== "INFO") {
15047
- throw new Error(`Only supporting LIST INFO, but got ${type}`);
15047
+ iterator.discard(ckSize - 4);
15048
+ return Promise.resolve(null);
15048
15049
  }
15049
15050
  const metadata = [];
15050
15051
  const remainingBytes = () => ckSize - (iterator.counter.getOffset() - startOffset);
@@ -15132,7 +15133,7 @@ var parseWav = (state) => {
15132
15133
  if (type === "id3") {
15133
15134
  return parseId32({ state });
15134
15135
  }
15135
- if (type === "junk" || type === "fllr" || type === "bext") {
15136
+ if (type === "junk" || type === "fllr" || type === "bext" || type === "cue") {
15136
15137
  return parseJunk({ state });
15137
15138
  }
15138
15139
  if (type === "fact") {
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.341";
1
+ export declare const VERSION = "4.0.345";
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.341';
5
+ exports.VERSION = '4.0.345';
package/package.json CHANGED
@@ -3,16 +3,16 @@
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.341",
6
+ "version": "4.0.345",
7
7
  "main": "dist/index.js",
8
8
  "sideEffects": false,
9
9
  "devDependencies": {
10
10
  "@types/wicg-file-system-access": "2023.10.5",
11
11
  "eslint": "9.19.0",
12
- "mediabunny": "1.3.0",
12
+ "mediabunny": "1.13.0",
13
13
  "@types/bun": "1.2.8",
14
- "@remotion/eslint-config-internal": "4.0.341",
15
- "@remotion/example-videos": "4.0.341"
14
+ "@remotion/example-videos": "4.0.345",
15
+ "@remotion/eslint-config-internal": "4.0.345"
16
16
  },
17
17
  "publishConfig": {
18
18
  "access": "public"