Lines Matching refs:asf_ctx
111 if (rt->asf_ctx) {
112 avformat_close_input(&rt->asf_ctx);
114 if (!(rt->asf_ctx = avformat_alloc_context()))
116 rt->asf_ctx->pb = &pb;
118 ret = avformat_open_input(&rt->asf_ctx, "", &ff_asf_demuxer, &opts);
122 av_dict_copy(&s->metadata, rt->asf_ctx->metadata, 0);
125 rt->asf_ctx->pb = NULL;
140 if (rt->asf_ctx) {
143 for (i = 0; i < rt->asf_ctx->nb_streams; i++) {
144 if (s->streams[stream_index]->id == rt->asf_ctx->streams[i]->id) {
146 *rt->asf_ctx->streams[i]->codec;
148 rt->asf_ctx->streams[i]->need_parsing;
149 rt->asf_ctx->streams[i]->codec->extradata_size = 0;
150 rt->asf_ctx->streams[i]->codec->extradata = NULL;
180 if (!rt->asf_ctx)
258 rt->asf_ctx->pb = pb;
264 res = ff_read_packet(rt->asf_ctx, pkt);
269 if (s->streams[i]->id == rt->asf_ctx->streams[pkt->stream_index]->id) {