# HG changeset patch # User michael # Date 1229562651 0 # Node ID 9000fd7c166ecdba3d4b2de56fd700bb850f9797 # Parent 5961d2deb35f4b34012340a68c7762af03c08ae0 Skip non intra luma code when there is no coded luma. 0.7% speedup for the cathedral sample. diff -r 5961d2deb35f -r 9000fd7c166e h264.c --- a/h264.c Thu Dec 18 01:05:06 2008 +0000 +++ b/h264.c Thu Dec 18 01:10:51 2008 +0000 @@ -2525,7 +2525,7 @@ idct_dc_add(dest_y + block_offset[i], h->mb + i*16, linesize); } } - }else{ + }else if(h->cbp&15){ const int di = IS_8x8DCT(mb_type) ? 4 : 1; for(i=0; i<16; i+=di){ int nnz = h->non_zero_count_cache[ scan8[i] ];