From: Anton Mitrofanov Date: Wed, 19 May 2010 17:07:03 +0000 (+0400) Subject: Fix regression in r1566 X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=c7876580bf822e63f1f77689218bfbbea4f9b9fc;p=x264.git Fix regression in r1566 Intra stats need to be kept track of for fast intra decision. --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 90c15d03..ec090f1e 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 )