]> git.videolan.org Git - x264.git/commitdiff
-q0 --b-rdo wasn't lossless
authorLoren Merritt <pengvado@videolan.org>
Mon, 13 Feb 2006 17:36:22 +0000 (17:36 +0000)
committerLoren Merritt <pengvado@videolan.org>
Mon, 13 Feb 2006 17:36:22 +0000 (17:36 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@436 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/analyse.c

index b9c19264396d0b8fdad35ac536848d4b1d2a6c32..f305279e4e15444f1cc9c3730072d9e42db3b86e 100644 (file)
@@ -2057,7 +2057,11 @@ void x264_macroblock_analyse( x264_t *h )
         {
             h->mb.i_type = B_SKIP;
             x264_mb_mc( h );
-            if( analysis.b_mbrd )
+            if( h->mb.b_lossless )
+            {
+                /* chance of skip is too small to bother */
+            }
+            else if( analysis.b_mbrd )
             {
                 i_bskip_cost = ssd_mb( h );
 
@@ -2073,7 +2077,7 @@ void x264_macroblock_analyse( x264_t *h )
             {
                 /* Conditioning the probe on neighboring block types
                  * doesn't seem to help speed or quality. */
-                b_skip = !h->mb.b_lossless && x264_macroblock_probe_bskip( h );
+                b_skip = x264_macroblock_probe_bskip( h );
             }
         }