- const static uint8_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;
- int read;
- int size;
-
- if (url_feof(&s->pb))
- {
- return AVERROR_IO;
- }
-
- toc=get_byte(&s->pb);
- q = (toc >> 2) & 0x01;
- ft = (toc >> 3) & 0x0F;
-
- size=packed_size[ft];
-
- if (av_new_packet(pkt, size+1))
- {
- return AVERROR_IO;
- }
- pkt->stream_index = 0;
- pkt->pos= url_ftell(&s->pb);
- pkt->data[0]=toc;