[vlc-devel] [PATCH] DXVA2: add the same Intel workaround as in libav/FFmpeg

Steve Lhomme robUx4 at videolabs.io
Fri Apr 3 15:32:23 CEST 2015


---
 modules/codec/avcodec/dxva2.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index e3941ca..1c84cc0 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -1049,6 +1049,10 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
         return VLC_EGENERIC;
     }
     sys->decoder = decoder;
+
+    if (IsEqualGUID(&sys->input, &DXVADDI_Intel_ModeH264_E))
+        sys->hw.workaround |= FF_DXVA2_WORKAROUND_INTEL_CLEARVIDEO;
+
     msg_Dbg(va, "IDirectXVideoDecoderService_CreateVideoDecoder succeed");
     return VLC_SUCCESS;
 }
-- 
2.3.2




More information about the vlc-devel mailing list