summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-06-29 09:33:57 +0200
committerAnton Khirnov <anton@khirnov.net>2016-06-29 12:15:14 +0200
commit36727fd5f66b16265ec3eaacfe6ad8588964c069 (patch)
treec776dbf96ade6ef3802bc6188a7587b0d68c3fde
parentb31a7b81111c97d67af8844a6aed0ec529fffdf3 (diff)
hevc: support Main10 DXVA2 accelerationdxva
-rw-r--r--libavcodec/hevc.c5
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