# HG changeset patch # User michael # Date 1264366449 0 # Node ID 7cfb7bb6e554099e80ef2362560aa37430426873 # Parent b2e1b3baef0ab220f498f8e4b36c84c3894a72b9 Branchless setting of MB_TYPE_8x8DCT. Not benchmarked as i failed to find a sample that uses this one. But it should be faster. diff -r b2e1b3baef0a -r 7cfb7bb6e554 h264_cavlc.c --- a/h264_cavlc.c Sun Jan 24 20:52:49 2010 +0000 +++ b/h264_cavlc.c Sun Jan 24 20:54:09 2010 +0000 @@ -904,9 +904,7 @@ } if(dct8x8_allowed && (cbp&15) && !IS_INTRA(mb_type)){ - if(get_bits1(&s->gb)){ - mb_type |= MB_TYPE_8x8DCT; - } + mb_type |= MB_TYPE_8x8DCT*get_bits1(&s->gb); } h->cbp= h->cbp_table[mb_xy]= cbp;