Lines Matching refs:rt
104 RTSPState *rt = s->priv_data;
118 if (rt->asf_ctx) {
119 avformat_close_input(&rt->asf_ctx);
125 rt->asf_ctx = avformat_alloc_context();
126 if (!rt->asf_ctx) {
130 rt->asf_ctx->pb = &pb.pub;
133 if ((ret = ff_copy_whiteblacklists(rt->asf_ctx, s)) < 0) {
138 ret = avformat_open_input(&rt->asf_ctx, "", iformat, &opts);
144 av_dict_copy(&s->metadata, rt->asf_ctx->metadata, 0);
145 rt->asf_pb_pos = avio_tell(&pb.pub);
147 rt->asf_ctx->pb = NULL;
158 RTSPState *rt = s->priv_data;
162 if (rt->asf_ctx) {
165 for (i = 0; i < rt->asf_ctx->nb_streams; i++) {
166 if (s->streams[stream_index]->id == rt->asf_ctx->streams[i]->id) {
168 rt->asf_ctx->streams[i]->codecpar);
170 ffstream(rt->asf_ctx->streams[i])->need_parsing;
200 RTSPState *rt = s->priv_data;
202 if (!rt->asf_ctx)
273 pb->pos += rt->asf_pb_pos;
275 rt->asf_ctx->pb = pb;
281 res = ff_read_packet(rt->asf_ctx, pkt);
282 rt->asf_pb_pos = avio_tell(pb);
286 if (s->streams[i]->id == rt->asf_ctx->streams[pkt->stream_index]->id) {