]> git.videolan.org Git - x264.git/commitdiff
exempt 1080p from the non-mod16 warning.
authorLoren Merritt <pengvado@videolan.org>
Sun, 10 Jun 2007 23:46:31 +0000 (23:46 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sun, 10 Jun 2007 23:46:31 +0000 (23:46 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@659 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c

index 4118ec7666b05f2cedf76a8afa042040a21295e2..33d59f3f00f2941c3768f55847405c17b55c47ea 100644 (file)
@@ -418,8 +418,12 @@ static int x264_validate_parameters( x264_t *h )
         h->param.rc.i_qp_max = x264_clip3( (int)(X264_MAX3( qp_p, qp_i, qp_b ) + .999), 0, 51 );
     }
 
-    if( ( h->param.i_width % 16 || h->param.i_height % 16 ) && !h->mb.b_lossless )
+    if( ( h->param.i_width % 16 || h->param.i_height % 16 )
+        && h->param.i_height != 1080 && !h->mb.b_lossless )
     {
+        // There's nothing special about 1080 in that the warning still applies to it,
+        // but chances are the user can't help it if his content is already 1080p,
+        // so there's no point in warning in that case.
         x264_log( h, X264_LOG_WARNING, 
                   "width or height not divisible by 16 (%dx%d), compression will suffer.\n",
                   h->param.i_width, h->param.i_height );