static u_int16_t packed_size[16] = {12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0}; u_int8_t toc, q, ft;
static uint16_t packed_size[16] = {12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0}; uint8_t toc, q, ft;
static int amr_read_packet(AVFormatContext *s,                          AVPacket *pkt){    static u_int16_t packed_size[16] = {12, 13, 15, 17, 19, 20, 26, 31, 5, 0, 0, 0, 0, 0, 0, 0};    u_int8_t toc, q, ft;    int read;    int size;    if (url_feof(&s->pb))        return -EIO;    toc=0;    toc=get_byte(&s->pb);    q  = (toc >> 2) & 0x01;    ft = (toc >> 3) & 0x0F;    size=packed_size[ft];    //printf("amr_read_packet size=%d\n",size);    if (av_new_packet(pkt, size+1))        return -EIO;    pkt->stream_index = 0;        pkt->data[0]=toc;    read = get_buffer(&s->pb, pkt->data+1, size);    if (read != size)    {        av_free_packet(pkt);        return -EIO;    }    return 0;}