diff options
author | sr55 <[email protected]> | 2012-11-08 18:59:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-11-08 18:59:42 +0000 |
commit | b6c40879a36d8c0f6bafebd7714f6b39de621e7b (patch) | |
tree | c02a2b25f2061e85ca7964506956d554ec4aa078 /win/CS | |
parent | 20c5dd3faa9a524efa9772faf1300523f3ae675a (diff) |
WinGui: Fixes to deblock filter.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5045 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs | 2 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs index db858c9f0..25d59529b 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs @@ -398,7 +398,7 @@ namespace HandBrake.ApplicationServices.Utilities break;
}
- if (task.Deblock != 0)
+ if (task.Deblock > 4)
query += string.Format(" --deblock={0}", task.Deblock);
if (task.Grayscale)
diff --git a/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs index e99d2100a..fe9c4fabf 100644 --- a/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs @@ -40,6 +40,7 @@ namespace HandBrakeWPF.ViewModels public FiltersViewModel(IWindowManager windowManager, IUserSettingService userSettingService)
{
this.CurrentTask = new EncodeTask();
+ this.DeblockValue = 4; // OFF
}
#endregion
@@ -350,7 +351,7 @@ namespace HandBrakeWPF.ViewModels this.SelectedDeInterlace = preset.Task.Deinterlace;
this.SelectedDetelecine = preset.Task.Detelecine;
this.Grayscale = preset.Task.Grayscale;
- this.DeblockValue = preset.Task.Deblock;
+ this.DeblockValue = preset.Task.Deblock == 0 ? 4 : preset.Task.Deblock;
// Custom Values
this.CustomDecomb = preset.Task.CustomDecomb;
|