summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-10-16 21:50:43 +0100
committersr55 <[email protected]>2019-10-16 21:50:53 +0100
commite86e66d0cf411f2ec5ffedea236753f66c4de753 (patch)
tree80ca4345b02bf4bcb9778a804d150ca8b2c69777
parent857096d0c95c9f80a642ce29c2ee34b0e8cb05ba (diff)
WinGui: Fix display of NVENC quality label on queue. Fixes #2363
-rw-r--r--win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs b/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs
index 7b4ec0fc0..1040b160f 100644
--- a/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs
+++ b/win/CS/HandBrakeWPF/Converters/Video/VideoOptionsTooltipConverter.cs
@@ -49,7 +49,13 @@ namespace HandBrakeWPF.Converters.Video
{
string rfqp = task.VideoEncoder == VideoEncoder.X264 || task.VideoEncoder == VideoEncoder.X264_10 || task.VideoEncoder == VideoEncoder.X265
|| task.VideoEncoder == VideoEncoder.X265_10 || task.VideoEncoder == VideoEncoder.X265_12 ? "RF" : "QP";
- string quality = task.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality ? task.Quality + rfqp : task.VideoBitrate + " kbps";
+
+ if (task.VideoEncoder == VideoEncoder.NvencH264 || task.VideoEncoder == VideoEncoder.NvencH265)
+ {
+ rfqp = "CQ";
+ }
+
+ string quality = task.VideoEncodeRateType == VideoEncodeRateType.ConstantQuality ? string.Format("{0} {1}", task.Quality, rfqp) : string.Format("{0} {1}", task.VideoBitrate, " kbps");
string twoPass = null;
if (task.VideoEncodeRateType == VideoEncodeRateType.AverageBitrate)