summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs')
-rw-r--r--win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
index 8e2f1d379..6854656d4 100644
--- a/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Video/VideoEncoderConverter.cs
@@ -60,6 +60,11 @@ namespace HandBrakeWPF.Converters.Video
encoders.Remove(VideoEncoder.QuickSync);
}
+ if (task != null && task.OutputFormat != OutputFormat.X265)
+ {
+ encoders.Remove(VideoEncoder.X265);
+ }
+
return EnumHelper<VideoEncoder>.GetEnumDisplayValuesSubset(encoders);
}