[FFmpeg-user] compiler warnings current snapshot

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Jan 15 04:38:49 EET 2018


2018-01-15 3:10 GMT+01:00 Reindl Harald <h.reindl at thelounge.net>:

> src/libavformat/tls_openssl.c: In function 'ff_openssl_deinit':
> src/libavformat/tls_openssl.c:105:43: warning: the comparison will always
> evaluate as 'false' for the address of 'openssl_lock' will never be NULL
> [-Waddress]
>          if (CRYPTO_get_locking_callback() == openssl_lock) {

I suspect this is related to a particular build environment.
(Does not happen everywhere, likely cannot be fixed.)

[...]

> src/libavformat/rtmpcrypt.c: In function 'rtmpe_write':
> src/libavformat/rtmpcrypt.c:304:36: warning: passing argument 2 of
> 'av_rc4_crypt' discards 'const' qualifier from pointer target type
> [-Wdiscarded-qualifiers]
>          av_rc4_crypt(&rt->key_out, buf, buf, size, NULL, 1);

This looks like an api abuse, feel free to open a ticket.

Carl Eugen


More information about the ffmpeg-user mailing list