@mediabunny/server 1.64.0 → 1.65.1

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.64.0",
4
+ "version": "1.65.1",
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.64.0"
38
+ "@mediabunny/prores": "^1.65.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "mediabunny": "^1.45.0"
@@ -90,6 +90,8 @@ export class AvFrameAudioSampleResource extends AudioSampleResource {
90
90
  }
91
91
 
92
92
  export const copyAudioSampleToAvFrame = (sample: AudioSample, frame: NodeAv.Frame) => {
93
+ frame.unref();
94
+
93
95
  frame.format = fromAudioSampleFormat(sample.format);
94
96
  frame.nbSamples = sample.numberOfFrames;
95
97
  frame.sampleRate = sample.sampleRate;
@@ -202,6 +202,8 @@ export class AvFrameVideoSampleResource extends VideoSampleResource {
202
202
  export const copyVideoSampleToAvFrame = async (sample: VideoSample, frame: NodeAv.Frame, lastBuffer: Buffer | null) => {
203
203
  assert(sample.format !== null);
204
204
 
205
+ frame.unref();
206
+
205
207
  frame.format = fromPixelFormat(sample.format);
206
208
  frame.width = sample.codedWidth;
207
209
  frame.height = sample.codedHeight;