]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
merge/simplify 2 if()
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 1 Aug 2007 19:26:24 +0000 (19:26 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Wed, 1 Aug 2007 19:26:24 +0000 (19:26 +0000)
~4 cpu cylces faster for the matrixbench video

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9856 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/mpeg12.c

index f0cbd8e7d6c710548a2606da78138eeda5b840a1..09c90e81dfab06456666bba2ac1fdcf354b7d74a 100644 (file)
@@ -366,12 +366,8 @@ static int mpeg_decode_mb(MpegEncContext *s,
                 motion_type = MT_FRAME;
             else{
                 motion_type = get_bits(&s->gb, 2);
-            }
-
-            /* compute dct type */
-            if (s->picture_structure == PICT_FRAME && //FIXME add a interlaced_dct coded var?
-                !s->frame_pred_frame_dct && HAS_CBP(mb_type)) {
-                s->interlaced_dct = get_bits1(&s->gb);
+                if (s->picture_structure == PICT_FRAME && HAS_CBP(mb_type))
+                    s->interlaced_dct = get_bits1(&s->gb);
             }
 
             if (IS_QUANT(mb_type))