RTMPEContext *rt = h->priv_data;
ff_dh_free(rt->dh);
- ffurl_close(rt->stream);
+ ffurl_closep(&rt->stream);
return 0;
}
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)