(h->flags & URL_WRONLY) != 0, h,
(h->flags & URL_WRONLY || h->flags & URL_RDWR), h,
int url_fdopen(ByteIOContext *s, URLContext *h){    uint8_t *buffer;    int buffer_size, max_packet_size;        max_packet_size = url_get_max_packet_size(h);    if (max_packet_size) {        buffer_size = max_packet_size; /* no need to bufferize more than one packet */    } else {        buffer_size = IO_BUFFER_SIZE;    }    buffer = av_malloc(buffer_size);    if (!buffer)        return -ENOMEM;    if (init_put_byte(s, buffer, buffer_size,                       (h->flags & URL_WRONLY) != 0, h,                      url_read_packet, url_write_packet, url_seek_packet) < 0) {        av_free(buffer);        return -EIO;    }    s->is_streamed = h->is_streamed;    s->max_packet_size = max_packet_size;    return 0;}