dxva: DXVA2_ModeHEVC_VLD_Main10 does not support Main
authorwm4 <nfxjfg@googlemail.com>
Mon, 10 Jul 2017 13:59:38 +0000 (15:59 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 22 Jul 2017 07:30:56 +0000 (09:30 +0200)
This mode apparently does not support decoding of HEVC Main (8 bit).
With D3D11 and Intel drivers on Windows 10 I get green corruption, while
using DXVA2_ModeHEVC_VLD_Main works.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/dxva2.c

index a60604a..9ceb623 100644 (file)
@@ -63,8 +63,7 @@ static const int prof_h264_high[]    = {FF_PROFILE_H264_CONSTRAINED_BASELINE,
                                         FF_PROFILE_UNKNOWN};
 static const int prof_hevc_main[]    = {FF_PROFILE_HEVC_MAIN,
                                         FF_PROFILE_UNKNOWN};
-static const int prof_hevc_main10[]  = {FF_PROFILE_HEVC_MAIN,
-                                        FF_PROFILE_HEVC_MAIN_10,
+static const int prof_hevc_main10[]  = {FF_PROFILE_HEVC_MAIN_10,
                                         FF_PROFILE_UNKNOWN};
 
 static const dxva_mode dxva_modes[] = {