aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-26 08:45:41 +0200
committerMartin Storsjö <martin@martin.st>2015-06-01 11:36:22 +0300
commit674b79148ff29f40cbd569f5585bf99c71204bf5 (patch)
tree09e4deefd7a451f5f337590d23d2555c77f15c93
parent63ce9fd23cfa5ac0d9a862be0da138108dc1c505 (diff)
downloadffmpeg-674b79148ff29f40cbd569f5585bf99c71204bf5.tar.gz
hevc: Fix HWACCEL_MAX for D3D11
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 62768aa1e5..f6a64093b9 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -431,7 +431,7 @@ static void export_stream_params(AVCodecContext *avctx,
static int set_sps(HEVCContext *s, const HEVCSPS *sps)
{
- #define HWACCEL_MAX (CONFIG_HEVC_DXVA2_HWACCEL)
+ #define HWACCEL_MAX (CONFIG_HEVC_DXVA2_HWACCEL + CONFIG_HEVC_D3D11VA_HWACCEL)
enum AVPixelFormat pix_fmts[HWACCEL_MAX + 2], *fmt = pix_fmts;
int ret;