@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 +1 -1
- package/package.json +1 -1
- package/src/codeccontext.cpp +1 -0
- package/src/index.ts +1 -1
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[]):
|
|
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
package/src/codeccontext.cpp
CHANGED
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
|
|