summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-23 12:27:23 +0100
committerwm4 <wm4@nowhere>2015-11-23 12:38:06 +0100
commit52af1f72e2c77e865001852cc1043d8037b8ba7a (patch)
tree356dddb8f6bf2a0dd97ebc45b9feb6957a033073 /video/decode
parentc9d1aa1d3cfefd8270e73299cd7836a8057556e7 (diff)
downloadmpv-52af1f72e2c77e865001852cc1043d8037b8ba7a.tar.bz2
mpv-52af1f72e2c77e865001852cc1043d8037b8ba7a.tar.xz
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.
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/dxva2.c4
1 files changed, 4 insertions, 0 deletions
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);