Lines Matching defs:fmtctx
57 AVFormatContext *fmtctx;
233 ret = av_read_frame(ctx->fmtctx, &ctx->apacket);
263 start_time = ctx->fmtctx->streams[ctx->astream]->start_time;
267 target_pts = av_rescale_q(target_pts, AV_TIME_BASE_Q, ctx->fmtctx->streams[ctx->astream]->time_base);
272 ret = av_seek_frame(ctx->fmtctx, ctx->astream, target_pts, AVSEEK_FLAG_BACKWARD);
294 ret = av_read_frame(ctx->fmtctx, &ctx->apacket);
332 got_pts = av_rescale_q(got_pts, ctx->fmtctx->streams[ctx->astream]->time_base, AV_TIME_BASE_Q);
358 ret = avformat_open_input(&ctx->fmtctx, mfi->path, NULL, NULL);
360 ret = av_open_input_file(&ctx->fmtctx, mfi->path, NULL, 0, NULL);
370 ret = avformat_find_stream_info(ctx->fmtctx,NULL);
379 for (i = 0; i < ctx->fmtctx->nb_streams; i++)
382 if (ctx->fmtctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO)
384 if (ctx->fmtctx->streams[i]->codec->codec_type == CODEC_TYPE_AUDIO)
400 ctx->acodec = ctx->fmtctx->streams[ctx->astream]->codec;
481 av_close_input_file(ctx->fmtctx);
494 av_close_input_file(ctx->fmtctx);