st/va: fix motion adaptive deinterlacing
authorChristian König <christian.koenig@amd.com>
Mon, 18 Jan 2016 19:56:06 +0000 (20:56 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 19 Jan 2016 16:28:38 +0000 (17:28 +0100)
Signed-off-by: Christian König <christian.koenig@amd.com>
src/gallium/state_trackers/va/postproc.c

index f541f7c8aebee263f80942157960c03fdf2f8c70..d06f01617dfa4ebe25c0b2d849fe38b8942ca6c0 100644 (file)
@@ -273,7 +273,7 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex
 
          case VAProcDeinterlacingMotionAdaptive:
             src = vlVaApplyDeint(drv, context, param, src,
-                                deint->flags & VA_DEINTERLACING_BOTTOM_FIELD);
+                                !!(deint->flags & VA_DEINTERLACING_BOTTOM_FIELD));
             break;
 
          default: