X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Frtmpcrypt.c;h=a835ab263f5c93ed6226dc2e7e16d27e089145a1;hb=20aec597d05f1930dbd4e4c5ab8ee837dea5b5f3;hp=c41ae4308f57e2da862a660242ad23c61eaf989f;hpb=217ad40aef9eeeff4e805dec3e980fb16aec3345;p=ffmpeg diff --git a/libavformat/rtmpcrypt.c b/libavformat/rtmpcrypt.c index c41ae4308f5..a835ab263f5 100644 --- a/libavformat/rtmpcrypt.c +++ b/libavformat/rtmpcrypt.c @@ -240,7 +240,7 @@ static int rtmpe_close(URLContext *h) RTMPEContext *rt = h->priv_data; ff_dh_free(rt->dh); - ffurl_close(rt->stream); + ffurl_closep(&rt->stream); return 0; } @@ -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)