aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmpcrypt.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-16 00:14:24 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-26 13:45:20 +0200
commit3914a76db687b4a94878d643da21bf0a217b6472 (patch)
treeddc7a34e6ce77d7a8d21f66e2e37f8c0c20e08e9 /libavformat/rtmpcrypt.c
parent4c27a6fbfde12317bd7d10502d73fb74d566afc3 (diff)
downloadffmpeg-3914a76db687b4a94878d643da21bf0a217b6472.tar.gz
lavf/rtmpcrypt: Add a cast to silence an unavoidable warning.
The av_rc4_crypt() documentation allows src == dst. Silences the following warning: libavformat/rtmpcrypt.c:304:36: warning: passing argument 2 of 'av_rc4_crypt' discards 'const' qualifier from pointer target type Reported-by: Reino Wijnsma
Diffstat (limited to 'libavformat/rtmpcrypt.c')
-rw-r--r--libavformat/rtmpcrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpcrypt.c b/libavformat/rtmpcrypt.c
index c41ae4308f..253b8ca2ce 100644
--- a/libavformat/rtmpcrypt.c
+++ b/libavformat/rtmpcrypt.c
@@ -301,7 +301,7 @@ static int rtmpe_write(URLContext *h, const uint8_t *buf, int size)
if (rt->handshaked) {
/* encrypt data to send to the server */
- av_rc4_crypt(&rt->key_out, buf, buf, size, NULL, 1);
+ av_rc4_crypt(&rt->key_out, (uint8_t *)buf, buf, size, NULL, 1);
}
if ((ret = ffurl_write(rt->stream, buf, size)) < 0)