Browse Source

obs-ffmpeg: Fix __VA_ARGS__ for comma ellision

derrod 2 years ago
parent
commit
2ac8ce8f65
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-ffmpeg/jim-nvenc.c

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

@@ -131,7 +131,7 @@ struct nv_bitstream {
 	void *ptr;
 };
 
-#define NV_FAIL(format, ...) nv_fail(enc->encoder, format, __VA_ARGS__)
+#define NV_FAIL(format, ...) nv_fail(enc->encoder, format, ##__VA_ARGS__)
 #define NV_FAILED(x) nv_failed(enc->encoder, x, __FUNCTION__, #x)
 
 static bool nv_bitstream_init(struct nvenc_data *enc, struct nv_bitstream *bs)