@scrypted/libav 1.0.141 → 1.0.143

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/lib/index.d.ts CHANGED
@@ -120,7 +120,7 @@ export declare function createAVFilter(options: {
120
120
  export declare function createAVFrame(width: number, height: number, pixelFormat: string, fillBlack?: boolean): AVFrame;
121
121
  export declare function createAVBitstreamFilter(filter: string): AVBitstreamFilter;
122
122
  export declare function getBinaryUrl(): string;
123
- export declare function createSdp(formatContexts: AVFormatContext[]): any;
123
+ export declare function createSdp(formatContexts: AVFormatContext[]): string;
124
124
  export declare function toJpeg(frame: AVFrame, quality: number): Promise<Buffer<ArrayBufferLike>>;
125
125
  export declare function toBuffer(frame: AVFrame): Promise<Buffer<ArrayBufferLike>>;
126
126
  export declare const version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scrypted/libav",
3
- "version": "1.0.141",
3
+ "version": "1.0.143",
4
4
  "dependencies": {
5
5
  "detect-libc": "^2.0.3",
6
6
  "follow-redirects": "^1.15.9",
@@ -105,6 +105,7 @@ public:
105
105
  ReceiveFrameWorker(napi_env env, napi_deferred deferred, AVCodecContext *codecContext)
106
106
  : Napi::AsyncWorker(env), deferred(deferred), codecContext(codecContext)
107
107
  {
108
+ result = nullptr;
108
109
  }
109
110
 
110
111
  void Execute() override
package/src/index.ts CHANGED
@@ -289,7 +289,7 @@ async function encodeJpeg(softwareFrame: AVFrame, quality: number) {
289
289
  return transcodePacket.getData();
290
290
  }
291
291
 
292
- export function createSdp(formatContexts: AVFormatContext[]) {
292
+ export function createSdp(formatContexts: AVFormatContext[]): string {
293
293
  return loadAddon().createSdp(formatContexts);
294
294
  }
295
295