]> git.sesse.net Git - x264/commitdiff
Disable i8x8 in lossless
authorFiona Glaser <fiona@x264.com>
Sun, 20 Jul 2014 03:34:22 +0000 (20:34 -0700)
committerFiona Glaser <fiona@x264.com>
Sun, 20 Jul 2014 03:52:57 +0000 (20:52 -0700)
x264's implementation was slightly incorrect due to a vague spec, so some
decoders decoded video incorrectly.

Minimal impact on compression.

encoder/encoder.c

index 416bf0cf4a07d817f0293aa7292aa6a48ef34845..bd26a9f496be9dbb19f1226629b95d104373ac93 100644 (file)
@@ -818,6 +818,8 @@ static int x264_validate_parameters( x264_t *h, int b_open )
         /* 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;
+        h->param.analyse.inter &= ~X264_ANALYSE_I8x8;
+        h->param.analyse.intra &= ~X264_ANALYSE_I8x8;
     }
     if( h->param.rc.i_rc_method == X264_RC_CQP )
     {