]> git.sesse.net Git - ffmpeg/commitdiff
dxva: DXVA2_ModeHEVC_VLD_Main10 does not support Main
authorwm4 <nfxjfg@googlemail.com>
Mon, 10 Jul 2017 13:59:38 +0000 (15:59 +0200)
committerwm4 <nfxjfg@googlemail.com>
Mon, 10 Jul 2017 14:03:15 +0000 (16:03 +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.

libavcodec/dxva2.c

index 542607ab3e53c480a42a7ca2d567f4c5d2f3c759..afcd361ef68cb16f7e3d5b0b3e96ff749837be45 100644 (file)
@@ -64,8 +64,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[] = {