More fixes

This commit is contained in:
Vanilagy
2026-05-11 23:51:50 +02:00
parent 81531cc510
commit 42b279e9b7
+2 -2
View File
@@ -57,7 +57,7 @@ export class NodeAvVideoEncoder extends CustomVideoEncoder {
static override supports(codec: VideoCodec, config: VideoEncoderConfig): boolean {
return (codec === 'avc' || codec === 'hevc' || codec === 'vp8' || codec === 'vp9' || codec === 'av1')
&& !(config.alpha === 'keep' || config.bitrateMode === 'quantizer');
&& config.bitrateMode !== 'quantizer';
}
async init(): Promise<void> {
@@ -285,7 +285,7 @@ export class NodeAvVideoEncoder extends CustomVideoEncoder {
break;
}
this.receivePacket(ret);
this.receivePacket(receiveRet);
}
}