[vlc-commits] DXVA2: add the same Intel workaround as in libavcodec

Steve Lhomme git at videolan.org
Fri Apr 10 11:46:47 CEST 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Apr  3 12:32:23 2015 +0000| [0624ef67f9c6532d56d2f06f455174c12d51a478] | committer: Jean-Baptiste Kempf

DXVA2: add the same Intel workaround as in libavcodec

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 bdcc6bf..9c2828a 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -1007,6 +1007,10 @@ static int DxCreateVideoDecoder(vlc_va_t *va,
         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;
 }



More information about the vlc-commits mailing list