Lines Matching defs:asf_st
115 ASFStream *asf_st[ASF_MAX_STREAMS];
431 if (asf->asf_st[i]->stream_index == st_num) {
432 st = s->streams[asf->asf_st[i]->index];
616 ASFStream *asf_st;
646 if (stream_index == asf->asf_st[i]->stream_index) {
658 asf->asf_st[asf->nb_streams] = av_mallocz(sizeof(*asf_st));
659 if (!asf->asf_st[asf->nb_streams])
661 asf_st = asf->asf_st[asf->nb_streams];
663 asf_st->stream_index = stream_index;
664 asf_st->index = st->index;
665 asf_st->indexed = 0;
667 asf_st->pkt.data_size = 0;
668 asf_st->pkt.avpkt = av_packet_alloc();
669 if (!asf_st->pkt.avpkt)
675 asf_st->type = AVMEDIA_TYPE_AUDIO;
680 asf_st->type = AVMEDIA_TYPE_VIDEO;
693 asf_st->span = span;
694 asf_st->virtual_pkt_len = avio_rl16(pb);
695 asf_st->virtual_chunk_len = avio_rl16(pb);
696 if (!asf_st->virtual_chunk_len || !asf_st->virtual_pkt_len)
745 if (st_num == asf->asf_st[i]->stream_index) {
746 st = s->streams[asf->asf_st[i]->index];
747 asf->asf_st[i]->lang_idx = lang_idx;
870 if ((asf->asf_st[i]->type == AVMEDIA_TYPE_VIDEO) && !asf->asf_st[i]->indexed) {
871 asf->asf_st[i]->indexed = 1;
872 st = s->streams[asf->asf_st[i]->index];
986 if (asf->stream_index == asf->asf_st[i]->stream_index) {
987 pkt->stream_index = asf->asf_st[i]->index;
1170 if (asf->stream_index == asf->asf_st[i]->stream_index) {
1171 asf_pkt = &asf->asf_st[i]->pkt;
1172 asf_pkt->stream_index = asf->asf_st[i]->index;
1219 if (asf->stream_index == asf->asf_st[i]->stream_index) {
1220 asf_pkt = &asf->asf_st[i]->pkt;
1228 pkt->stream_index = asf->asf_st[i]->index;
1276 ASFStream *asf_st = asf->asf_st[st_num];
1278 uint16_t pkt_len = asf->asf_st[st_num]->virtual_pkt_len;
1279 uint16_t chunk_len = asf->asf_st[st_num]->virtual_chunk_len;
1290 while (asf_pkt->data_size >= asf_st->span * pkt_len + pos) {
1298 for (j = 0; j < asf_st->span; j++) {
1307 p += asf_st->span * pkt_len;
1380 ASFPacket *asf_pkt = &asf->asf_st[i]->pkt;
1382 if (asf->asf_st[i]->span > 1 &&
1383 asf->asf_st[i]->type == AVMEDIA_TYPE_AUDIO)
1387 pkt->stream_index = asf->asf_st[i]->index;
1411 av_packet_free(&asf->asf_st[i]->pkt.avpkt);
1412 av_freep(&asf->asf_st[i]);
1440 ASFPacket *pkt = &asf->asf_st[i]->pkt;
1493 ASFStream *st = asf->asf_st[i];
1648 const char *rfc1766 = asf->asf_sd[asf->asf_st[i]->lang_idx].langs;
1649 AVStream *st = s->streams[asf->asf_st[i]->index];