[x264-devel] commit: Fix regression in r1566 (Anton Mitrofanov )

git at videolan.org git at videolan.org
Fri May 21 10:33:13 CEST 2010


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Wed May 19 21:07:03 2010 +0400| [c7876580bf822e63f1f77689218bfbbea4f9b9fc] | committer: Jason Garrett-Glaser 

Fix regression in r1566
Intra stats need to be kept track of for fast intra decision.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=c7876580bf822e63f1f77689218bfbbea4f9b9fc
---

 encoder/encoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 90c15d0..ec090f1 100644
--- a/encoder/encoder.c
+++ b/encoder/encoder.c
@@ -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 )



More information about the x264-devel mailing list