Mercurial > libavcodec.hg
changeset 8374:9000fd7c166e libavcodec
Skip non intra luma code when there is no coded luma.
0.7% speedup for the cathedral sample.
author | michael |
---|---|
date | Thu, 18 Dec 2008 01:10:51 +0000 |
parents | 5961d2deb35f |
children | de2509cf3c44 |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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] ];