1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00

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.
This commit is contained in:
wm4 2015-11-23 12:27:23 +01:00
parent c9d1aa1d3c
commit 52af1f72e2

View File

@ -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);