summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-06-08 23:04:22 +0100
committersr55 <[email protected]>2018-06-08 23:04:22 +0100
commitc2a7fba08f489844a1474c01be455ae1e9a03abb (patch)
treef3a7a414d0d6a1ad3b9e2c553d74b5d0b32b95d4 /win/CS/HandBrakeWPF/Converters
parentf4bd868418555189faac85e0af3f3ad64058836a (diff)
WinGui: Add Support for the VCE Encoders.
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters')
-rw-r--r--win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
index 285b1a373..42ccf1c10 100644
--- a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
@@ -91,6 +91,16 @@ namespace HandBrakeWPF.Converters.Video
encoders.Remove(VideoEncoder.QuickSyncH26510b);
}
+ if (!SystemInfo.IsVceH264Available)
+ {
+ encoders.Remove(VideoEncoder.VceH264);
+ }
+
+ if (!SystemInfo.IsVceH265Available)
+ {
+ encoders.Remove(VideoEncoder.VceH265);
+ }
+
return EnumHelper<VideoEncoder>.GetEnumDisplayValuesSubset(encoders);
}