Lines Matching defs:oc
55 AVFormatContext *oc;
78 oc = wc->avf;
80 ff_format_set_url(oc, wc->header_filename);
83 oc->interrupt_callback = s->interrupt_callback;
84 oc->max_delay = s->max_delay;
85 oc->flags = s->flags & ~AVFMT_FLAG_FLUSH_PACKETS;
86 oc->strict_std_compliance = s->strict_std_compliance;
87 oc->avoid_negative_ts = s->avoid_negative_ts;
89 oc->flush_packets = 0;
91 if ((ret = av_dict_copy(&oc->metadata, s->metadata, 0)) < 0)
94 if (!(st = avformat_new_stream(oc, NULL)))
103 ret = s->io_open(s, &oc->pb, oc->url, AVIO_FLAG_WRITE, &dict);
107 oc->pb->seekable = 0;
115 ret = avformat_init_output(oc, &dict);
128 s->avoid_negative_ts = oc->avoid_negative_ts;
130 ffformatcontext(oc)->avoid_negative_ts_use_pts;
131 oc->avoid_negative_ts = AVFMT_AVOID_NEG_TS_DISABLED;
153 AVFormatContext *oc = wc->avf;
156 ret = avformat_write_header(oc, NULL);
157 ff_format_io_close(s, &oc->pb);
167 AVFormatContext *oc = wc->avf;
170 ret = avio_open_dyn_buf(&oc->pb);
180 AVFormatContext *oc = wc->avf;
188 if (!oc->pb)
193 av_write_frame(oc, NULL);
194 buffer_size = avio_close_dyn_buf(oc->pb, &buffer);
195 oc->pb = NULL;
216 AVFormatContext *oc = wc->avf;
231 if (!oc->pb || (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO &&
242 return av_write_frame(oc, pkt);
248 AVFormatContext *oc = wc->avf;
251 if (!oc->pb) {
256 ret = av_write_trailer(oc);