[vlc-devel] [PATCH 07/20] dxva2_deinterlace: clean code

Steve Lhomme robux4 at videolabs.io
Wed Nov 22 18:18:26 CET 2017


Simplify the init, we don't know the order yet
---
 modules/hw/d3d9/dxva2_deinterlace.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/modules/hw/d3d9/dxva2_deinterlace.c b/modules/hw/d3d9/dxva2_deinterlace.c
index 98444d19d6..4dfc906950 100644
--- a/modules/hw/d3d9/dxva2_deinterlace.c
+++ b/modules/hw/d3d9/dxva2_deinterlace.c
@@ -341,11 +341,7 @@ static int Open(vlc_object_t *obj)
         dsc.InputSampleFreq.Denominator = 0;
     }
     dsc.OutputFrameFreq = dsc.InputSampleFreq;
-
-    DXVA2_ExtendedFormat *pFormat = &dsc.SampleFormat;
-    pFormat->SampleFormat = dst->b_top_field_first ?
-                DXVA2_SampleFieldInterleavedEvenFirst :
-                DXVA2_SampleFieldInterleavedOddFirst;
+    dsc.SampleFormat.SampleFormat = DXVA2_SampleFieldInterleavedEvenFirst;
 
     UINT count = 0;
     hr = IDirectXVideoProcessorService_GetVideoProcessorDeviceGuids( processor,
-- 
2.14.2



More information about the vlc-devel mailing list