[FFmpeg-cvslog] r9858 - trunk/libavcodec/mpeg12.c
michael
subversion
Wed Aug 1 22:04:12 CEST 2007
Author: michael
Date: Wed Aug 1 22:04:12 2007
New Revision: 9858
Log:
merge another 2 if() to save a few cpu cycles
Modified:
trunk/libavcodec/mpeg12.c
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c (original)
+++ trunk/libavcodec/mpeg12.c Wed Aug 1 22:04:12 2007
@@ -497,14 +497,11 @@ static int mpeg_decode_mb(MpegEncContext
if (HAS_CBP(mb_type)) {
s->dsp.clear_blocks(s->block[0]);
- if(!s->chroma_y_shift){
- s->dsp.clear_blocks(s->block[6]);
- }
-
cbp = get_vlc2(&s->gb, mb_pat_vlc.table, MB_PAT_VLC_BITS, 1);
if(mb_block_count > 6){
cbp<<= mb_block_count-6;
cbp |= get_bits(&s->gb, mb_block_count-6);
+ s->dsp.clear_blocks(s->block[6]);
}
if (cbp <= 0){
av_log(s->avctx, AV_LOG_ERROR, "invalid cbp at %d %d\n", s->mb_x, s->mb_y);
More information about the ffmpeg-cvslog
mailing list