diff options
author | dynaflash <[email protected]> | 2008-12-01 04:54:51 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-12-01 04:54:51 +0000 |
commit | 16077a4cd1f879b56a5335a5e31caa05179e24f0 (patch) | |
tree | 965fe41223c56913b78770be3acb7e335d189114 | |
parent | c46e59c86e313ce24f79f0745cbfcece23a0c3c9 (diff) |
MacGui: Fix the deblock filter for live previews.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1980 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.mm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index bdebb6954..0f98bfe63 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -2823,8 +2823,14 @@ fWorkingCount = 0; } /* Deblock (uses pp7 default) */ - if ([fPictureController deblock]) + /* NOTE: even though there is a valid deblock setting of 0 for the filter, for + * the macgui's purposes a value of 0 actually means to not even use the filter + * current hb_filter_deblock.settings valid ranges are from 5 - 15 + */ + if ([fPictureController deblock] != 0) { + NSString *deblockStringValue = [NSString stringWithFormat: @"%d",[fPictureController deblock]]; + hb_filter_deblock.settings = (char *) [deblockStringValue UTF8String]; hb_list_add( job->filters, &hb_filter_deblock ); } |