Lines Matching refs:ofmt_ctx
49 AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; in main() local
80 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, out_filename); in main()
81 if (!ofmt_ctx) { in main()
94 ofmt = ofmt_ctx->oformat; in main()
110 out_stream = avformat_new_stream(ofmt_ctx, NULL); in main()
124 av_dump_format(ofmt_ctx, 0, out_filename, 1); in main()
127 ret = avio_open(&ofmt_ctx->pb, out_filename, AVIO_FLAG_WRITE); in main()
134 ret = avformat_write_header(ofmt_ctx, NULL); in main()
155 out_stream = ofmt_ctx->streams[pkt.stream_index]; in main()
163 log_packet(ofmt_ctx, &pkt, "out"); in main()
165 ret = av_interleaved_write_frame(ofmt_ctx, &pkt); in main()
173 av_write_trailer(ofmt_ctx); in main()
179 if (ofmt_ctx && !(ofmt->flags & AVFMT_NOFILE)) in main()
180 avio_closep(&ofmt_ctx->pb); in main()
181 avformat_free_context(ofmt_ctx); in main()