aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-26 05:08:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-26 05:23:29 +0200
commit688147cfe2d14bf24d185eb7299be01e511582ba (patch)
treec4096d453f0d0e5b0ad8dc1a214db868840f1748
parent5cddfc53570fe10fa7fe6d0f166f6f0e090466f6 (diff)
downloadffmpeg-688147cfe2d14bf24d185eb7299be01e511582ba.tar.gz
avcodec/hevc: Fix HWACCEL_MAX for D3D11
Found-by: philipl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/hevc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 028ece82f9..fd6370b83e 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -328,7 +328,7 @@ static void export_stream_params(AVCodecContext *avctx,
static int set_sps(HEVCContext *s, const HEVCSPS *sps, enum AVPixelFormat pix_fmt)
{
- #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, i;