From 52af1f72e2c77e865001852cc1043d8037b8ba7a Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 23 Nov 2015 12:27:23 +0100 Subject: dxva2: reject 10 bit HEVC 10 bit HEVC would require DXVA2_ModeHEVC_VLD_Main10, and most a different surface type (judging by lavfsplitter source code, both P010 and P016 would work). Since I'm unable to test this stuff, exclude 10 bit for now. See #2516. --- video/decode/dxva2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/decode') diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c index 0f7542817d..7ae08c4186 100644 --- a/video/decode/dxva2.c +++ b/video/decode/dxva2.c @@ -609,6 +609,10 @@ static int dxva2_init_decoder(struct lavc_ctx *s, int w, int h) MP_ERR(ctx, "Unsupported H.264 profile for DXVA2 HWAccel: %d\n", profile); return -1; } + if (codec == AV_CODEC_ID_HEVC && profile != FF_PROFILE_HEVC_MAIN) { + MP_ERR(ctx, "Unsupported H.265 profile for DXVA2 HWAccel: %d\n", profile); + return -1; + } if (ctx->decoder) dxva2_destroy_decoder(s); -- cgit v1.2.3