summaryrefslogtreecommitdiffstats
path: root/libhb/hb_json.c
diff options
context:
space:
mode:
authorTim Walker <[email protected]>2016-03-29 23:22:26 +0200
committerTim Walker <[email protected]>2016-03-31 01:05:16 +0200
commitf62eab7af77982d8a161d2714d237f3b7bda3cf8 (patch)
tree1388fe4e13257e8b503260b4f9e29b9205c7dd13 /libhb/hb_json.c
parent0de684adbc17b445f93ed8e6f52951b44dc12063 (diff)
libhb: fix incorrect assumption that video quality is always positive.
Diffstat (limited to 'libhb/hb_json.c')
-rw-r--r--libhb/hb_json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/hb_json.c b/libhb/hb_json.c
index 39f7392f3..716ced4ce 100644
--- a/libhb/hb_json.c
+++ b/libhb/hb_json.c
@@ -497,7 +497,7 @@ hb_dict_t* hb_job_to_dict( const hb_job_t * job )
hb_dict_set(video_dict, "ColorMatrixCode",
hb_value_int(job->color_matrix_code));
}
- if (job->vquality >= 0)
+ if (job->vquality > HB_INVALID_VIDEO_QUALITY)
{
hb_dict_set(video_dict, "Quality", hb_value_double(job->vquality));
}