OSDN Git Service

dxva2_vc1: fix intensity compensation condition with interlaced fields
authorHendrik Leppkes <h.leppkes@gmail.com>
Fri, 7 Mar 2014 13:02:58 +0000 (14:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 7 Mar 2014 15:03:03 +0000 (16:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dxva2_vc1.c

index a86d7cd..88138e3 100644 (file)
@@ -43,7 +43,7 @@ static void fill_picture_parameters(AVCodecContext *avctx,
     // determine if intensity compensation is needed
     if (s->pict_type == AV_PICTURE_TYPE_P) {
       if ((v->fcm == ILACE_FRAME && v->intcomp) || (v->fcm != ILACE_FRAME && v->mv_mode == MV_PMODE_INTENSITY_COMP)) {
-        if (v->lumscale != 32 || v->lumshift != 0 || (s->picture_structure != PICT_FRAME && (v->lumscale2 != 32 && v->lumshift2 != 0)))
+        if (v->lumscale != 32 || v->lumshift != 0 || (s->picture_structure != PICT_FRAME && (v->lumscale2 != 32 || v->lumshift2 != 0)))
           intcomp = 1;
       }
     }