$ make cc -g -O3 -Wall -fPIC -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/alsa -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/cuda-10.2/include/ -I./opengl -I./ -DPLUGIN_NAME_I18N='"softhdcuvid"' -D_GNU_SOURCE -DHAVE_GL -DAV_INFO -DAV_INFO_TIME=3000 -DUSE_MPEG_COMPLETE -DH264_EOS_TRICKSPEED -DUSE_VDR_SPU -DUSE_ALSA -DUSE_OSS -DUSE_OPENGLOSD -DUSE_GLX -DPLACEBO -DUSE_PIP -DCUVID -DUSE_SCREENSAVER -DUSE_SWRESAMPLE -DGIT_REV='"98bf418"' -g -W -Wextra -Winit-self -Wdeclaration-after-statement -c -o video.o video.c video.c: In function ‘VideoSetPts’: video.c:622:81: warning: unused parameter ‘video_ctx’ [-Wunused-parameter] static void VideoSetPts(int64_t * pts_p, int interlaced, const AVCodecContext * video_ctx, const AVFrame * frame) ^~~~~~~~~ video.c: In function ‘GlxSetupWindow’: video.c:962:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] GLenum err = glewInit(); ^~~~~~ video.c: In function ‘EglInit’: video.c:992:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int attributeList10[] = { ^~~ video.c: In function ‘CuvidTestSurfaces’: video.c:1746:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (i = atomic_read(&CuvidDecoders[0]->SurfacesFilled) < VIDEO_SURFACES_MAX-1) ^ video.c: In function ‘createTextureDst’: video.c:2291:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] CUDA_EXTERNAL_MEMORY_HANDLE_DESC ext_desc = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ video.c:2298:13: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC tex_desc = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ video.c:2224:20: warning: unused variable ‘tex’ [-Wunused-variable] struct pl_tex *tex; ^~~ video.c:2222:15: warning: variable ‘size’ set but not used [-Wunused-but-set-variable] int n, i, size = 1, fd; ^~~~ video.c: In function ‘init_generic_hwaccel’: video.c:2772:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] AVHWFramesContext *new_fctx = (void *)new_frames_ctx->data; ^~~~~~~~~~~~~~~~~ video.c:2788:26: error: ‘CuvidDecoder {aka struct _cuvid_decoder_}’ has no member named ‘filter_graph’ if (decoder->filter_graph) ^~ video.c:2789:18: warning: implicit declaration of function ‘avfilter_graph_free’; did you mean ‘avpicture_free’? [-Wimplicit-function-declaration] avfilter_graph_free(&decoder->filter_graph); ^~~~~~~~~~~~~~~~~~~ avpicture_free video.c:2789:46: error: ‘CuvidDecoder {aka struct _cuvid_decoder_}’ has no member named ‘filter_graph’ avfilter_graph_free(&decoder->filter_graph); ^~ video.c: In function ‘Cuvid_get_format’: video.c:2829:26: warning: unused variable ‘deint’ [-Wunused-variable] int bitformat16 = 0, deint = 0; ^~~~~ video.c: In function ‘get_RGB’: video.c:2970:11: warning: unused variable ‘texLoc’ [-Wunused-variable] GLint texLoc; ^~~~~~ video.c:2968:16: warning: unused variable ‘texture’ [-Wunused-variable] GLuint fb, texture; ^~~~~~~ video.c:2968:12: warning: unused variable ‘fb’ [-Wunused-variable] GLuint fb, texture; ^~ video.c:2961:9: warning: unused variable ‘offset’ [-Wunused-variable] int offset, x1, y1, x0, y0; ^~~~~~ video.c:2960:13: warning: unused variable ‘Image’ [-Wunused-variable] VkImage Image; ^~~~~ video.c: In function ‘CuvidRenderFrame’: video.c:3344:14: warning: unused variable ‘first_time’ [-Wunused-variable] uint64_t first_time; ^~~~~~~~~~ video.c: In function ‘CuvidMixVideo’: video.c:3585:22: warning: unused variable ‘FrameSideData’ [-Wunused-variable] AVFrameSideData *FrameSideData = NULL; ^~~~~~~~~~~~~ video.c:3583:11: warning: unused variable ‘texLoc’ [-Wunused-variable] GLint texLoc; ^~~~~~ video.c:3582:19: warning: variable ‘ycropf’ set but not used [-Wunused-but-set-variable] float xcropf, ycropf; ^~~~~~ video.c:3582:11: warning: variable ‘xcropf’ set but not used [-Wunused-but-set-variable] float xcropf, ycropf; ^~~~~~ video.c:3581:9: warning: unused variable ‘y’ [-Wunused-variable] int y; ^ video.c:3576:13: warning: variable ‘dst_rect’ set but not used [-Wunused-but-set-variable] VdpRect dst_rect; ^~~~~~~~ video.c:3573:10: warning: unused variable ‘ok’ [-Wunused-variable] bool ok; ^~ video.c:3571:13: warning: unused variable ‘Image’ [-Wunused-variable] VkImage Image; ^~~~~ video.c:3570:26: warning: unused variable ‘fmt’ [-Wunused-variable] const struct pl_fmt *fmt; ^~~ video.c:3568:23: warning: unused variable ‘vkp’ [-Wunused-variable] struct pl_tex_vk *vkp; ^~~ video.c: In function ‘make_osd_overlay’: video.c:3832:17: warning: unused variable ‘black’ [-Wunused-variable] const float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f }; ^~~~~ video.c: In function ‘CuvidDisplayFrame’: video.c:3908:17: warning: unused variable ‘black’ [-Wunused-variable] const float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f }; ^~~~~ video.c:3907:26: warning: unused variable ‘fmt’ [-Wunused-variable] const struct pl_fmt *fmt; ^~~ video.c:3906:13: warning: unused variable ‘Image’ [-Wunused-variable] VkImage Image; ^~~~~ video.c:3904:10: warning: unused variable ‘ok’ [-Wunused-variable] bool ok; ^~ video.c:3901:18: warning: unused variable ‘fdiff’ [-Wunused-variable] static float fdiff = 23000.0; ^~~~~ video.c:3897:11: warning: unused variable ‘turnaround’ [-Wunused-variable] float turnaround; ^~~~~~~~~~ video.c:3894:9: warning: variable ‘valid_frame’ set but not used [-Wunused-but-set-variable] int valid_frame = 0; ^~~~~~~~~~~ video.c:3893:9: warning: unused variable ‘RTS_flag’ [-Wunused-variable] int RTS_flag; ^~~~~~~~ video.c:3890:25: warning: unused variable ‘Count’ [-Wunused-variable] static unsigned int Count; ^~~~~ video.c:3887:21: warning: unused variable ‘first_time’ [-Wunused-variable] static uint64_t first_time = 0, round_time = 0; ^~~~~~~~~~ video.c: In function ‘CuvidSyncDecoder’: video.c:4283:21: warning: unused variable ‘last_time’ [-Wunused-variable] static uint64_t last_time; ^~~~~~~~~ video.c:4282:9: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] int err = 0; ^~~ video.c: In function ‘CuvidSyncRenderFrame’: video.c:4484:42: warning: passing argument 3 of ‘CuvidRenderFrame’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] CuvidRenderFrame(decoder, video_ctx, frame); ^~~~~ video.c:3342:13: note: expected ‘AVFrame * {aka struct AVFrame *}’ but argument is of type ‘const AVFrame * {aka const struct AVFrame *}’ static void CuvidRenderFrame(CuvidDecoder * decoder, const AVCodecContext * video_ctx, AVFrame * frame) ^~~~~~~~~~~~~~~~ video.c: In function ‘VideoOsdDrawARGB’: video.c:4873:27: warning: unused parameter ‘xi’ [-Wunused-parameter] void VideoOsdDrawARGB(int xi, int yi, int width, int height, int pitch, const uint8_t * argb, int x, int y) ^~ video.c:4873:35: warning: unused parameter ‘yi’ [-Wunused-parameter] void VideoOsdDrawARGB(int xi, int yi, int width, int height, int pitch, const uint8_t * argb, int x, int y) ^~ video.c:4873:66: warning: unused parameter ‘pitch’ [-Wunused-parameter] void VideoOsdDrawARGB(int xi, int yi, int width, int height, int pitch, const uint8_t * argb, int x, int y) ^~~~~ video.c:4873:89: warning: unused parameter ‘argb’ [-Wunused-parameter] void VideoOsdDrawARGB(int xi, int yi, int width, int height, int pitch, const uint8_t * argb, int x, int y) ^~~~ video.c: In function ‘pl_log_intern’: video.c:5157:26: warning: unused parameter ‘stream’ [-Wunused-parameter] void pl_log_intern(void *stream, enum pl_log_level level, const char *msg) ^~~~~~ video.c: In function ‘VideoHandlerThread’: video.c:5337:12: warning: unused variable ‘contextAttrs’ [-Wunused-variable] EGLint contextAttrs[] = { ^~~~~~~~~~~~ At top level: video.c:4283:21: warning: ‘last_time’ defined but not used [-Wunused-variable] static uint64_t last_time; ^~~~~~~~~ video.c:3887:21: warning: ‘first_time’ defined but not used [-Wunused-variable] static uint64_t first_time = 0, round_time = 0; ^~~~~~~~~~ video.c:3890:25: warning: ‘Count’ defined but not used [-Wunused-variable] static unsigned int Count; ^~~~~ video.c:3901:18: warning: ‘fdiff’ defined but not used [-Wunused-variable] static float fdiff = 23000.0; ^~~~~ video.c:2755:12: warning: ‘init_generic_hwaccel’ defined but not used [-Wunused-function] static int init_generic_hwaccel(CuvidDecoder * decoder, enum AVPixelFormat hw_fmt,AVCodecContext * video_ctx) ^~~~~~~~~~~~~~~~~~~~ In file included from video.c:1465:0: shaders.h:403:13: warning: ‘render_pass_quad’ defined but not used [-Wunused-function] static void render_pass_quad(int flip, float xcrop, float ycrop) ^~~~~~~~~~~~~~~~ shaders.h:327:15: warning: ‘sc_generate’ defined but not used [-Wunused-function] static GLuint sc_generate(GLuint gl_prog, enum AVColorSpace colorspace) ^~~~~~~~~~~ shaders.h:311:15: warning: ‘sc_generate_osd’ defined but not used [-Wunused-function] static GLuint sc_generate_osd(GLuint gl_prog) ^~~~~~~~~~~~~~~ video.c:1447:12: warning: ‘semid’ defined but not used [-Wunused-variable] static int semid; ^~~~~ video.c:981:13: warning: ‘EglInit’ defined but not used [-Wunused-function] static void EglInit(void) ^~~~~~~ video.c:826:17: warning: ‘test_time’ defined but not used [-Wunused-variable] static uint64_t test_time = 0; ^~~~~~~~~ video.c:537:12: warning: ‘OsdIndex’ defined but not used [-Wunused-variable] static int OsdIndex = 0; ///< index into OsdGlTextures ^~~~~~~~ video.c:536:15: warning: ‘OsdGlTextures’ defined but not used [-Wunused-variable] static GLuint OsdGlTextures[2]; ///< gl texture for OSD ^~~~~~~~~~~~~ video.c:401:18: warning: ‘VideoDeinterlaceSurfaces’ defined but not used [-Wunused-const-variable=] static const int VideoDeinterlaceSurfaces = 4; ^~~~~~~~~~~~~~~~~~~~~~~~ video.c:392:19: warning: ‘VideoTransparentOsd’ defined but not used [-Wunused-const-variable=] static const char VideoTransparentOsd = 1; ^~~~~~~~~~~~~~~~~~~ : recipe for target 'video.o' failed make: *** [video.o] Error 1