]> git.videolan.org Git - x264.git/commitdiff
Allow 8x8dct+cavlc+lossless with subme>=6
authorJason Garrett-Glaser <darkshikari@gmail.com>
Sat, 11 Dec 2010 11:48:59 +0000 (03:48 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 14 Dec 2010 16:27:17 +0000 (08:27 -0800)
encoder/encoder.c

index 3c2d3d75d544e4c81cbefd5169ee44d4a21f8bf6..ab66661e79d4d3e93baff4aa99a016e610b89a69 100644 (file)
@@ -521,8 +521,8 @@ static int x264_validate_parameters( x264_t *h )
         h->param.analyse.i_noise_reduction = 0;
         h->param.analyse.b_psy = 0;
         h->param.i_bframe = 0;
-        /* 8x8dct is not useful at all in CAVLC lossless */
-        if( !h->param.b_cabac )
+        /* 8x8dct is not useful without RD in CAVLC lossless */
+        if( !h->param.b_cabac && h->param.analyse.i_subpel_refine < 6 )
             h->param.analyse.b_transform_8x8 = 0;
     }
     if( h->param.rc.i_rc_method == X264_RC_CQP )