changeset 5438:8ea581ae9fa2 libavcodec

merge/simplify 2 if() ~4 cpu cylces faster for the matrixbench video
author michael
date Wed, 01 Aug 2007 19:26:24 +0000
parents 57434d6c8f49
children f1db308c277b
files mpeg12.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Wed Aug 01 19:17:36 2007 +0000
+++ b/mpeg12.c	Wed Aug 01 19:26:24 2007 +0000
@@ -366,12 +366,8 @@
                 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))