int ret;
int ret, size; AVStream *st;
static int wav_read_packet(AVFormatContext *s,                           AVPacket *pkt){    int ret;    if (url_feof(&s->pb))        return -EIO;    if (av_new_packet(pkt, MAX_SIZE))        return -EIO;    pkt->stream_index = 0;    ret = get_buffer(&s->pb, pkt->data, pkt->size);    if (ret < 0)        av_free_packet(pkt);    /* note: we need to modify the packet size here to handle the last       packet */    pkt->size = ret;    return ret;}