Skip to content

Commit 36e1af6

Browse files
committed
Added requirement for encoder to be NVEnc to use NVDec
1 parent 196bb98 commit 36e1af6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VidCoderCommon/Model/JsonEncodeFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ private Video CreateVideo(
990990
videoOptions = AdvancedOptionUtilities.Prepend("hyperencode=adaptive", videoOptions);
991991
}
992992

993-
if (!setHardwareDecoder && HandBrakeHardwareEncoderHelper.IsNVDecAvailable && jobConfiguration.EnableNVDec)
993+
if (!setHardwareDecoder && HandBrakeHardwareEncoderHelper.IsNVDecAvailable && videoEncoder.IsNVEnc && jobConfiguration.EnableNVDec)
994994
{
995995
setHardwareDecoder = true;
996996
video.HardwareDecode = NativeConstants.HB_DECODE_NVDEC;

0 commit comments

Comments
 (0)