Lines Matching refs:ofmt_ctx
49 AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL;
86 avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, out_filename);
87 if (!ofmt_ctx) {
100 ofmt = ofmt_ctx->oformat;
116 out_stream = avformat_new_stream(ofmt_ctx, NULL);
130 av_dump_format(ofmt_ctx, 0, out_filename, 1);
133 ret = avio_open(&ofmt_ctx->pb, out_filename, AVIO_FLAG_WRITE);
140 ret = avformat_write_header(ofmt_ctx, NULL);
161 out_stream = ofmt_ctx->streams[pkt->stream_index];
167 log_packet(ofmt_ctx, pkt, "out");
169 ret = av_interleaved_write_frame(ofmt_ctx, pkt);
179 av_write_trailer(ofmt_ctx);
186 if (ofmt_ctx && !(ofmt->flags & AVFMT_NOFILE))
187 avio_closep(&ofmt_ctx->pb);
188 avformat_free_context(ofmt_ctx);