summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index bfcd87539..f2996b449 100644
--- a/test/test.c
+++ b/test/test.c
@@ -854,7 +854,7 @@ static int HandleEvents( hb_handle_t * h )
hb_fix_aspect( job, HB_KEEP_WIDTH );
}
- if( vquality >= 0.0 && vquality <= 1.0 )
+ if( vquality >= 0.0 && ( ( vquality <= 1.0 ) || ( vcodec == HB_VCODEC_X264 ) ) )
{
job->vquality = vquality;
job->vbitrate = 0;