Lines Matching refs:asf_ctx
110 if (rt->asf_ctx) {
111 avformat_close_input(&rt->asf_ctx);
113 if (!(rt->asf_ctx = avformat_alloc_context()))
115 rt->asf_ctx->pb = &pb;
116 ret = avformat_open_input(&rt->asf_ctx, "", &ff_asf_demuxer, NULL);
119 av_dict_copy(&s->metadata, rt->asf_ctx->metadata, 0);
122 rt->asf_ctx->pb = NULL;
135 if (rt->asf_ctx) {
138 for (i = 0; i < rt->asf_ctx->nb_streams; i++) {
139 if (s->streams[stream_index]->id == rt->asf_ctx->streams[i]->id) {
141 *rt->asf_ctx->streams[i]->codec;
142 rt->asf_ctx->streams[i]->codec->extradata_size = 0;
143 rt->asf_ctx->streams[i]->codec->extradata = NULL;
172 if (!rt->asf_ctx)
253 rt->asf_ctx->pb = pb;
259 res = av_read_packet(rt->asf_ctx, pkt);
264 if (s->streams[i]->id == rt->asf_ctx->streams[pkt->stream_index]->id) {