summaryrefslogtreecommitdiffstats
path: root/libhb/enctheora.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/enctheora.c')
-rw-r--r--libhb/enctheora.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/libhb/enctheora.c b/libhb/enctheora.c
index e340bade5..29dfed1b5 100644
--- a/libhb/enctheora.c
+++ b/libhb/enctheora.c
@@ -63,7 +63,7 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job )
ti.keyframe_mindistance = 8;
ti.noise_sensitivity = 1;
ti.sharpness = 0;
- if (job->vquality < 0.0 || job->vquality > 1.0)
+ if (job->vquality < 0.0)
{
ti.target_bitrate = job->vbitrate * 1000;
ti.keyframe_data_target_bitrate = job->vbitrate * 1000 * 1.5;
@@ -72,7 +72,15 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job )
else
{
ti.target_bitrate = 0;
- ti.quality = 63 * job->vquality;
+
+ if( job->vquality > 0 && job->vquality < 1 )
+ {
+ ti.quality = 63 * job->vquality;
+ }
+ else
+ {
+ ti.quality = job->vquality;
+ }
}
theora_encode_init( &pv->theora, &ti );