return -EIO; }  pkt->size = ret;
int raw_read_packet(AVFormatContext *s,                    AVPacket *pkt){    int packet_size, n, ret;    if (url_feof(&s->pb))        return -EIO;    packet_size = url_get_packet_size(&s->pb);    n = MIN_SIZE / packet_size;    if (n <= 0)        n = 1;    if (av_new_packet(pkt, n * packet_size) < 0)        return -EIO;    pkt->stream_index = 0;    ret = get_buffer(&s->pb, pkt->data, pkt->size);    if (ret < 0)        av_free_packet(pkt);    return ret;}