From ffac90c5f6cc64bfc6e18d3db94d554c2eb5effb Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Mon, 23 May 2022 08:52:47 -0700 Subject: [PATCH] rebroadcast: unrecognized platforms should still have libx264 --- common/src/ffmpeg-hardware-acceleration.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/common/src/ffmpeg-hardware-acceleration.ts b/common/src/ffmpeg-hardware-acceleration.ts index 2fa190d63..48ee24c82 100644 --- a/common/src/ffmpeg-hardware-acceleration.ts +++ b/common/src/ffmpeg-hardware-acceleration.ts @@ -87,7 +87,7 @@ export function getH264DecoderArgs(): CodecArgs { return ret; } -export const LIBX264_ENCODER_TITLE = 'libx264 (Software)'; +const LIBX264_ENCODER_TITLE = 'libx264 (Software)'; export function getH264EncoderArgs() { const encoders: { [type: string]: string } = {}; @@ -114,9 +114,6 @@ export function getH264EncoderArgs() { encoders['VAAPI'] = 'h264_vaapi'; encoders['Nvidia'] = 'nvenc_h264'; } - else { - return {}; - } const encoderArgs: CodecArgs = {}; for (const [name, encoder] of Object.entries(encoders)) {