Add other args check

This commit is contained in:
HaveAGitGat 2023-06-27 07:09:13 +01:00
parent 89fe92a8cc
commit fe8864fcc0

View file

@ -191,7 +191,9 @@ const getEncoder = async ({
inputs, inputs,
otherArguments, otherArguments,
}) => { }) => {
if (otherArguments.workerType.includes('gpu') if (
otherArguments.workerType
&& otherArguments.workerType.includes('gpu')
&& inputs.try_use_gpu && (inputs.target_codec === 'hevc' || inputs.target_codec === 'h264')) { && inputs.try_use_gpu && (inputs.target_codec === 'hevc' || inputs.target_codec === 'h264')) {
const gpuEncoders = [ const gpuEncoders = [
{ {