changeset 5440:cfbb6ab18f89 libavcodec

merge another 2 if() to save a few cpu cycles
author michael
date Wed, 01 Aug 2007 20:04:12 +0000
parents f1db308c277b
children 7b8fd76dba47
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Wed Aug 01 19:37:28 2007 +0000
+++ b/mpeg12.c	Wed Aug 01 20:04:12 2007 +0000
@@ -497,14 +497,11 @@
         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);