]> granicus.if.org Git - handbrake/commitdiff
nvenc: silence a compiler warning.
authorsr55 <sr55.hb@outlook.com>
Mon, 11 Feb 2019 16:13:43 +0000 (16:13 +0000)
committersr55 <sr55.hb@outlook.com>
Mon, 11 Feb 2019 16:14:31 +0000 (16:14 +0000)
libhb/nvenc_common.c

index f1b7f42804d9a09e67e0d78b01309d9a0be4fc96..478b2997eaba928a5d484a9a3ee09e4570ff1b57 100644 (file)
@@ -44,7 +44,7 @@ int hb_check_nvenc_available()
     
     #ifdef USE_NVENC
         uint32_t nvenc_ver;
-        void *context;
+        void *context = NULL;
         NvencFunctions *nvenc_dl = NULL;
 
         int loadErr = nvenc_load_functions(&nvenc_dl, context);