vlc | branch: master | Steve Lhomme <rob...@videolabs.io> | Wed Nov 22 18:18:26 
2017 +0100| [020975b40c8949cfccbfb0e742fecfc8889255ef] | committer: 
Jean-Baptiste Kempf

dxva2_deinterlace: clean code

Simplify the init, we don't know the order yet

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=020975b40c8949cfccbfb0e742fecfc8889255ef
---

 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,

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to