summaryrefslogtreecommitdiffstats
path: root/libhb
diff options
context:
space:
mode:
Diffstat (limited to 'libhb')
-rw-r--r--libhb/param.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/param.c b/libhb/param.c
index 8c6210720..b19d37db6 100644
--- a/libhb/param.c
+++ b/libhb/param.c
@@ -550,7 +550,12 @@ static hb_dict_t * generate_chroma_smooth_settings(const char *preset,
}
// Size
- if (!strcasecmp(tune, "tiny"))
+ if (tune == NULL || tune[0] == 0 ||
+ !strcasecmp(tune, "none") || !strcasecmp(tune, "medium"))
+ {
+ size = 7;
+ }
+ else if (!strcasecmp(tune, "tiny"))
{
size = 3;
}
@@ -558,11 +563,6 @@ static hb_dict_t * generate_chroma_smooth_settings(const char *preset,
{
size = 5;
}
- else if ((tune == NULL || !strcasecmp(tune, "none")) ||
- (!strcasecmp(tune, "medium")))
- {
- size = 7;
- }
else if (!strcasecmp(tune, "wide"))
{
size = 9;