summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2016-04-03 22:37:09 +0200
committerTim Walker <[email protected]>2016-04-03 22:37:09 +0200
commitbb08d5faa249b35b8ee9d5e29c9566816c4d3623 (patch)
treecd286af30f5bcdf4e2dc79f647caff1164fc0bde
parent18821cd07b6faf2007adb556d82f82df9f0dc8bf (diff)
CLI: fix incorrect assumption that video quality is always positive.
-rw-r--r--test/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index 87ffff270..2c728d960 100644
--- a/test/test.c
+++ b/test/test.c
@@ -123,7 +123,7 @@ static int height = 0;
static int crop[4] = { -1,-1,-1,-1 };
static int loose_crop = -1;
static char * vrate = NULL;
-static float vquality = -1.0;
+static float vquality = HB_INVALID_VIDEO_QUALITY;
static int vbitrate = 0;
static int mux = 0;
static int anamorphic_mode = -1;
@@ -3497,7 +3497,7 @@ static hb_dict_t * PreparePreset(const char *preset_name)
{
hb_dict_set(preset, "VideoOptionExtra", hb_value_string(advanced_opts));
}
- if (vquality >= 0)
+ if (vquality > HB_INVALID_VIDEO_QUALITY)
{
hb_dict_set(preset, "VideoQualityType", hb_value_int(2));
hb_dict_set(preset, "VideoQualitySlider", hb_value_double(vquality));