[FFmpeg-cvslog] r21435 - trunk/libavcodec/h264_cavlc.c
michael
subversion
Sun Jan 24 21:54:09 CET 2010
Author: michael
Date: Sun Jan 24 21:54:09 2010
New Revision: 21435
Log:
Branchless setting of MB_TYPE_8x8DCT.
Not benchmarked as i failed to find a sample that uses this one. But it should be faster.
Modified:
trunk/libavcodec/h264_cavlc.c
Modified: trunk/libavcodec/h264_cavlc.c
==============================================================================
--- trunk/libavcodec/h264_cavlc.c Sun Jan 24 21:52:49 2010 (r21434)
+++ trunk/libavcodec/h264_cavlc.c Sun Jan 24 21:54:09 2010 (r21435)
@@ -904,9 +904,7 @@ decode_intra_mb:
}
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;
More information about the ffmpeg-cvslog
mailing list