diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-06-29 09:33:57 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-15 15:35:44 +0200 |
commit | 33f6690eb4e21acc4b581688eecfc4cc5ea9515e (patch) | |
tree | c581898ace58b752dbc62a5a457dbe0491ffd83c /libavcodec/hevc.c | |
parent | 38efff92f1ef81f3de20ff0460ec7b70c253d714 (diff) |
hevc: offer DXVA2 for 10bit 420
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 177cf93ada..5e1b3a0125 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -397,10 +397,13 @@ static int set_sps(HEVCContext *s, const HEVCSPS *sps) export_stream_params(s->avctx, &s->ps, sps); - if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) { + if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P || + sps->pix_fmt == AV_PIX_FMT_YUV420P10) { #if CONFIG_HEVC_DXVA2_HWACCEL *fmt++ = AV_PIX_FMT_DXVA2_VLD; #endif + } + if (sps->pix_fmt == AV_PIX_FMT_YUV420P || sps->pix_fmt == AV_PIX_FMT_YUVJ420P) { #if CONFIG_HEVC_D3D11VA_HWACCEL *fmt++ = AV_PIX_FMT_D3D11VA_VLD; #endif |