summaryrefslogtreecommitdiffstats
path: root/libhb/common.h
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/common.h
parent0de684adbc17b445f93ed8e6f52951b44dc12063 (diff)
libhb: fix incorrect assumption that video quality is always positive.
Diffstat (limited to 'libhb/common.h')
-rw-r--r--libhb/common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/common.h b/libhb/common.h
index 5d99e2eb8..813b778ef 100644
--- a/libhb/common.h
+++ b/libhb/common.h
@@ -481,7 +481,7 @@ struct hb_job_s
/* Video settings:
vcodec: output codec
- vquality: output quality (if < 0.0, bitrate is used instead)
+ vquality: output quality (if invalid, bitrate is used instead)
vbitrate: output bitrate (Kbps)
vrate: output framerate
cfr: 0 (vfr), 1 (cfr), 2 (pfr) [see render.c]
@@ -510,6 +510,9 @@ struct hb_job_s
#define HB_VCODEC_X265_MASK 0x000F000
#define HB_VCODEC_H265_MASK (HB_VCODEC_X265_MASK|HB_VCODEC_QSV_H265)
+/* define an invalid CQ value compatible with all CQ-capable codecs */
+#define HB_INVALID_VIDEO_QUALITY (-1000.)
+
int vcodec;
double vquality;
int vbitrate;