[FFmpeg-devel] [PATCH 1/1] make headers compile in c++ mode
Daniel Oberhoff
daniel at danieloberhoff.de
Thu Apr 26 15:47:36 EEST 2018
---
include/ffnvcodec/dynlink_loader.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/ffnvcodec/dynlink_loader.h b/include/ffnvcodec/dynlink_loader.h
index 352a0c8..3b0a284 100644
--- a/include/ffnvcodec/dynlink_loader.h
+++ b/include/ffnvcodec/dynlink_loader.h
@@ -114,7 +114,7 @@
\
n##_free_functions(functions); \
\
- f = *functions = calloc(1, sizeof(*f)); \
+ f = *functions = (T*)calloc(1, sizeof(*f)); \
if (!f) \
return -1; \
\
--
2.14.3 (Apple Git-98)
More information about the ffmpeg-devel
mailing list