From 7db304bcbd77e2e880028511e3d5341684747c69 Mon Sep 17 00:00:00 2001 From: Philipp Kerling Date: Thu, 28 Mar 2019 17:38:47 +0100 Subject: [PATCH] [vaapi] Remove filter_flags setting in vpp This is not used, according to the API documentation a deinterlace filter always overrides toplevel filter_flags anyway. --- xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp index c9d0a3aef2c03..ded027211ca07 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp @@ -2626,6 +2626,7 @@ bool CVppPostproc::Filter(CVaapiProcessedPicture &outPic) pipelineParams->output_region = &outputRegion; pipelineParams->surface_region = &inputRegion; pipelineParams->output_background_color = 0xff000000; + pipelineParams->filter_flags = 0; VASurfaceID forwardRefs[32]; VASurfaceID backwardRefs[32]; @@ -2664,11 +2665,6 @@ bool CVppPostproc::Filter(CVaapiProcessedPicture &outPic) return false; } - if (m_vppMethod == VS_INTERLACEMETHOD_VAAPI_BOB) - pipelineParams->filter_flags = (flags & VA_DEINTERLACING_BOTTOM_FIELD) ? VA_BOTTOM_FIELD : VA_TOP_FIELD; - else - pipelineParams->filter_flags = 0; - pipelineParams->filters = &m_filter; pipelineParams->num_filters = 1; }