| 563 | } |
| 564 | |
| 565 | int ffurl_write2(void *urlcontext, const uint8_t *buf, int size) |
| 566 | { |
| 567 | URLContext *h = urlcontext; |
| 568 | |
| 569 | if (!(h->flags & AVIO_FLAG_WRITE)) |
| 570 | return AVERROR(EIO); |
| 571 | /* avoid sending too big packets */ |
| 572 | if (h->max_packet_size && size > h->max_packet_size) |
| 573 | return AVERROR(EIO); |
| 574 | |
| 575 | return retry_transfer_wrapper(h, NULL, buf, size, size, 0); |
| 576 | } |
| 577 | |
| 578 | int64_t ffurl_seek2(void *urlcontext, int64_t pos, int whence) |
| 579 | { |
no test coverage detected