[FFmpeg-devel] [PATCH 1/1] make headers compile in c++ mode

Timo Rothenpieler timo at rothenpieler.org
Thu Apr 26 16:46:17 EEST 2018


On 26.04.2018 14:47, Daniel Oberhoff wrote:
> ---
>  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;                           \
>                                               \

applied

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180426/5947ab44/attachment.sig>


More information about the ffmpeg-devel mailing list