]> git.videolan.org Git - x264.git/commitdiff
Fix regression in r1566
authorAnton Mitrofanov <BugMaster@narod.ru>
Wed, 19 May 2010 17:07:03 +0000 (21:07 +0400)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Fri, 21 May 2010 04:23:23 +0000 (21:23 -0700)
Intra stats need to be kept track of for fast intra decision.

encoder/encoder.c

index 90c15d0380e569438dd6c33df723d771a91ef737..ec090f1ee652a9e380236969ceab6cf2d57146a9 100644 (file)
@@ -1890,11 +1890,11 @@ static int x264_slice_write( x264_t *h )
         x264_macroblock_cache_save( h );
 
         /* accumulate mb stats */
+        h->stat.frame.i_mb_count[h->mb.i_type]++;
 
         int b_intra = IS_INTRA( h->mb.i_type );
         if( h->param.i_log_level >= X264_LOG_INFO || h->param.rc.b_stat_write )
         {
-            h->stat.frame.i_mb_count[h->mb.i_type]++;
             if( !b_intra && !IS_SKIP( h->mb.i_type ) && !IS_DIRECT( h->mb.i_type ) )
             {
                 if( h->mb.i_partition != D_8x8 )