rebroadcast: unrecognized platforms should still have libx264

This commit is contained in:
Koushik Dutta
2022-05-23 08:52:47 -07:00
parent baef74c7bf
commit ffac90c5f6

View File

@@ -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)) {