Lines Matching defs:stream_ctx
57 static StreamContext *stream_ctx;
75 stream_ctx = av_calloc(ifmt_ctx->nb_streams, sizeof(*stream_ctx));
76 if (!stream_ctx)
110 stream_ctx[i].dec_ctx = codec_ctx;
112 stream_ctx[i].dec_frame = av_frame_alloc();
113 if (!stream_ctx[i].dec_frame)
146 dec_ctx = stream_ctx[i].dec_ctx;
202 stream_ctx[i].enc_ctx = enc_ctx;
409 ret = init_filter(&filter_ctx[i], stream_ctx[i].dec_ctx,
410 stream_ctx[i].enc_ctx, filter_spec);
427 StreamContext *stream = &stream_ctx[stream_index];
503 if (!(stream_ctx[stream_index].enc_ctx->codec->capabilities &
541 StreamContext *stream = &stream_ctx[stream_index];
602 avcodec_free_context(&stream_ctx[i].dec_ctx);
603 if (ofmt_ctx && ofmt_ctx->nb_streams > i && ofmt_ctx->streams[i] && stream_ctx[i].enc_ctx)
604 avcodec_free_context(&stream_ctx[i].enc_ctx);
611 av_frame_free(&stream_ctx[i].dec_frame);
614 av_free(stream_ctx);