From 7103c8350a1cb0c9fa574d9ccaa09ce5f53dbfe5 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 20 Jan 2012 15:19:44 +0100 Subject: [PATCH] dxva2_vc1: pass the overlap flag to the decoder Signed-off-by: Anton Khirnov --- libavcodec/dxva2_vc1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c index 53c205e5d6..2b0480baa9 100644 --- a/libavcodec/dxva2_vc1.c +++ b/libavcodec/dxva2_vc1.c @@ -101,7 +101,8 @@ static void fill_picture_parameters(AVCodecContext *avctx, (v->rangered << 3) | (s->max_b_frames ); pp->bPicExtrapolation = (!v->interlace || v->fcm == PROGRESSIVE) ? 1 : 2; - pp->bPicDeblocked = ((v->profile != PROFILE_ADVANCED && v->rangeredfrm) << 5) | + pp->bPicDeblocked = ((!pp->bPicBackwardPrediction && v->overlap) << 6) | + ((v->profile != PROFILE_ADVANCED && v->rangeredfrm) << 5) | (s->loop_filter << 1); pp->bPicDeblockConfined = (v->postprocflag << 7) | (v->broadcast << 6) |