@mediabunny/server 1.56.0 → 1.56.2

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mediabunny/server",
3
3
  "author": "Vanilagy",
4
- "version": "1.56.0",
4
+ "version": "1.56.2",
5
5
  "description": "Adds full video and audio decoder and encoder support to Mediabunny for use in server-side environments (Node, Bun, Deno). Based on NodeAV.",
6
6
  "main": "./dist/bundles/mediabunny-server.cjs",
7
7
  "module": "./dist/bundles/mediabunny-server.mjs",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "node-av": "^6.0.0",
38
- "@mediabunny/prores": "^1.56.0"
38
+ "@mediabunny/prores": "^1.56.2"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "mediabunny": "^1.45.0"
@@ -82,7 +82,11 @@ export class NodeAvVideoDecoder extends CustomVideoDecoder {
82
82
  : null;
83
83
  codecContext.sampleAspectRatio = new NodeAv.Rational(this.pixelAspectRatio.num, this.pixelAspectRatio.den);
84
84
 
85
- const ret = await codecContext.open2();
85
+ // Honor inferred H.264 reorder buffering even when bitstream restrictions aren't explicitly signaled
86
+ // See https://github.com/Vanilagy/mediabunny/issues/488
87
+ const options = NodeAv.Dictionary.fromObject({ strict: NodeAv.FF_COMPLIANCE_STRICT });
88
+
89
+ const ret = await codecContext.open2(codec, options);
86
90
  NodeAv.FFmpegError.throwIfError(ret, 'Open codec context');
87
91
 
88
92
  this.codecContext = codecContext;