From 917954ee9cfc85920193e8698b2370b6f20600d0 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 8 Aug 2014 10:35:14 +0200 Subject: [PATCH] vebox: fix indication of field ordering in sequence. VEBOX_DNDI_STATE::dndi_top_first indicates whether the top field is first in sequence (TFF), or if the bottom field comes first. This is an indication of the temporal sequence for input frames, available in the "history" buffer. As such, the correct flag to check against, from a VA-API perspective, is VA_DEINTERLACING_BOTTOM_FIELD_FIRST. https://bugs.freedesktop.org/show_bug.cgi?id=72518 https://bugs.freedesktop.org/show_bug.cgi?id=72522 Signed-off-by: Gwenole Beauchesne --- src/gen75_vpp_vebox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c index 03ff8c1..e33389c 100644 --- a/src/gen75_vpp_vebox.c +++ b/src/gen75_vpp_vebox.c @@ -131,7 +131,7 @@ void hsw_veb_dndi_table(VADriverContextP ctx, struct intel_vebox_context *proc_c assert(di_param); progressive_dn = 0; - dndi_top_first = !(di_param->flags & VA_DEINTERLACING_BOTTOM_FIELD); + dndi_top_first = !(di_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST); motion_compensated_enable = (di_param->algorithm == VAProcDeinterlacingMotionCompensated); } -- 2.11.0