From 5ef65973408dc9ba83876002f6425e6bf7e9ffe3 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Fri, 31 Jan 2020 14:15:56 +0100 Subject: [PATCH] Fix cuvid compile --- video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video.c b/video.c index f37e64c..c6d3d00 100644 --- a/video.c +++ b/video.c @@ -2751,7 +2751,7 @@ int init_filters(AVCodecContext * dec_ctx, CuvidDecoder * decoder, AVFrame * fra } #endif - +#ifdef VAAPI static int init_generic_hwaccel(CuvidDecoder * decoder, enum AVPixelFormat hw_fmt,AVCodecContext * video_ctx) { @@ -2814,6 +2814,7 @@ error: av_buffer_unref(&decoder->cached_hw_frames_ctx); return -1; } +#endif /// /// Callback to negotiate the PixelFormat. ///