summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Functions
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Functions')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs11
1 files changed, 1 insertions, 10 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs b/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs
index 2b6980466..70dc8ea9c 100644
--- a/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs
+++ b/win/CS/HandBrake.ApplicationServices/Functions/InteropModelCreator.cs
@@ -143,16 +143,7 @@ namespace HandBrake.ApplicationServices.Functions
profile.Quality = work.Quality.HasValue ? work.Quality.Value : 0;
profile.UseDisplayWidth = true;
profile.VideoBitrate = work.VideoBitrate.HasValue ? work.VideoBitrate.Value : 0;
-
- switch (work.VideoEncodeRateType)
- {
- case VideoEncodeRateMode.AverageBitrate:
- profile.VideoEncodeRateType = VideoEncodeRateType.AverageBitrate;
- break;
- case VideoEncodeRateMode.ConstantQuality:
- profile.VideoEncodeRateType = VideoEncodeRateType.ConstantQuality;
- break;
- }
+ profile.VideoEncodeRateType = work.VideoEncodeRateType;
switch (work.VideoEncoder)
{