Jelajahi Sumber

obs-ffmpeg: Fix VAAPI/NVENC ifdefs

VAAPI init was under NVENC clauses, so it was disabled if no NVENC.

That was introduced in af555b9372a70d6c83370bf6c2f08c8b6100b915
from #10536, which refactored NVENC.
Lluís Batlle i Rossell 1 tahun lalu
induk
melakukan
7c85253667
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      plugins/obs-ffmpeg/obs-ffmpeg.c

+ 1 - 1
plugins/obs-ffmpeg/obs-ffmpeg.c

@@ -377,6 +377,7 @@ bool obs_module_load(void)
 			obs_register_encoder(&hevc_nvenc_encoder_info);
 #endif
 	}
+#endif
 
 #ifdef _WIN32
 	amf_load();
@@ -415,7 +416,6 @@ bool obs_module_load(void)
 	}
 #endif
 #endif
-#endif
 
 #if ENABLE_FFMPEG_LOGGING
 	obs_ffmpeg_load_logging();