X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtmpcrypt.c;h=253b8ca2ce15a73d8382a265174128e40893e6e2;hb=f6f6857c2a81a29c19993195c2cef7e15eda601c;hp=c41ae4308f57e2da862a660242ad23c61eaf989f;hpb=980af9a88cfd743d71fad67e7dd905231ea0a4f7;p=ffmpeg diff --git a/libavformat/rtmpcrypt.c b/libavformat/rtmpcrypt.c index c41ae4308f5..253b8ca2ce1 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)