Lines Matching defs:ifmt_ctx
39 static AVFormatContext *ifmt_ctx;
64 ifmt_ctx = NULL;
65 if ((ret = avformat_open_input(&ifmt_ctx, filename, NULL, NULL)) < 0) {
70 if ((ret = avformat_find_stream_info(ifmt_ctx, NULL)) < 0) {
75 stream_ctx = av_calloc(ifmt_ctx->nb_streams, sizeof(*stream_ctx));
79 for (i = 0; i < ifmt_ctx->nb_streams; i++) {
80 AVStream *stream = ifmt_ctx->streams[i];
102 codec_ctx->framerate = av_guess_frame_rate(ifmt_ctx, stream, NULL);
117 av_dump_format(ifmt_ctx, 0, filename, 0);
138 for (i = 0; i < ifmt_ctx->nb_streams; i++) {
145 in_stream = ifmt_ctx->streams[i];
392 filter_ctx = av_malloc_array(ifmt_ctx->nb_streams, sizeof(*filter_ctx));
396 for (i = 0; i < ifmt_ctx->nb_streams; i++) {
400 if (!(ifmt_ctx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_AUDIO
401 || ifmt_ctx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO))
405 if (ifmt_ctx->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
534 if ((ret = av_read_frame(ifmt_ctx, packet)) < 0)
546 ifmt_ctx->streams[stream_index]->time_base,
569 ifmt_ctx->streams[stream_index]->time_base,
580 for (i = 0; i < ifmt_ctx->nb_streams; i++) {
601 for (i = 0; i < ifmt_ctx->nb_streams; i++) {
615 avformat_close_input(&ifmt_ctx);