Commit 930f67b7 authored by Hendrik Leppkes's avatar Hendrik Leppkes Committed by Michael Niedermayer

dxva2_vc1: fix intensity compensation condition with interlaced fields

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4fc339fa
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment