]> git.videolan.org Git - x264.git/commitdiff
Disable B-frames in lossless mode
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 6 Jan 2009 21:55:44 +0000 (16:55 -0500)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 6 Jan 2009 21:55:44 +0000 (16:55 -0500)
They hurt compression anyways, and direct auto was bugged with lossless.

encoder/analyse.c
encoder/encoder.c

index 8457c3858cfc14df31dbad6e6c74d2e7b13f2116..f9f5abb7d65b37ecc6ee51ccc5a5d4a30d82aa75 100644 (file)
@@ -2464,11 +2464,7 @@ void x264_macroblock_analyse( x264_t *h )
         {
             if( !h->mb.b_direct_auto_write )
                 x264_mb_mc( h );
-            if( h->mb.b_lossless )
-            {
-                /* chance of skip is too small to bother */
-            }
-            else if( analysis.i_mbrd )
+            if( analysis.i_mbrd )
             {
                 i_bskip_cost = ssd_mb( h );
                 /* 6 = minimum cavlc cost of a non-skipped MB */
index fd86a18d8bd1567dc86c694195193cb4ce61390b..3120e940db4e90c1815facb1d2c218d7bd04e575 100644 (file)
@@ -411,6 +411,7 @@ static int x264_validate_parameters( x264_t *h )
         h->param.analyse.b_fast_pskip = 0;
         h->param.analyse.i_noise_reduction = 0;
         h->param.analyse.f_psy_rd = 0;
+        h->param.i_bframe = 0;
         /* 8x8dct is not useful at all in CAVLC lossless */
         if( !h->param.b_cabac )
             h->param.analyse.b_transform_8x8 = 0;