Lines Matching defs:buf
69 char hostname[256], buf[1024], path[1024];
81 ff_url_join(buf, sizeof(buf), "rtp", NULL, hostname, rtp_port, "%s", path);
82 if ((ret = ffurl_open_whitelist(&s->rtp_hd, buf, flags, &h->interrupt_callback,
96 static int srtp_read(URLContext *h, uint8_t *buf, int size)
101 ret = ffurl_read(s->rtp_hd, buf, size);
103 if (ff_srtp_decrypt(&s->srtp_in, buf, &ret) < 0)
109 static int srtp_write(URLContext *h, const uint8_t *buf, int size)
113 return ffurl_write(s->rtp_hd, buf, size);
114 size = ff_srtp_encrypt(&s->srtp_out, buf, size, s->encryptbuf,