mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/hevc: Fix HWACCEL_MAX for D3D11
Found-by: philipl Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
5cddfc5357
commit
688147cfe2
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user