[vlc-commits] dxva2_deinterlace: clean code

Steve Lhomme git at videolan.org
Thu Nov 23 10:16:53 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at 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 <jb at 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,



More information about the vlc-commits mailing list