Lines Matching refs:oc
54 AVFormatContext *oc; in webm_chunk_init() local
77 oc = wc->avf; in webm_chunk_init()
79 ff_format_set_url(oc, wc->header_filename); in webm_chunk_init()
82 oc->interrupt_callback = s->interrupt_callback; in webm_chunk_init()
83 oc->max_delay = s->max_delay; in webm_chunk_init()
84 oc->flags = s->flags & ~AVFMT_FLAG_FLUSH_PACKETS; in webm_chunk_init()
85 oc->strict_std_compliance = s->strict_std_compliance; in webm_chunk_init()
86 oc->avoid_negative_ts = s->avoid_negative_ts; in webm_chunk_init()
88 oc->flush_packets = 0; in webm_chunk_init()
90 if ((ret = av_dict_copy(&oc->metadata, s->metadata, 0)) < 0) in webm_chunk_init()
93 if (!(st = avformat_new_stream(oc, NULL))) in webm_chunk_init()
108 ret = s->io_open(s, &oc->pb, oc->url, AVIO_FLAG_WRITE, &dict); in webm_chunk_init()
112 oc->pb->seekable = 0; in webm_chunk_init()
120 ret = avformat_init_output(oc, &dict); in webm_chunk_init()
133 s->avoid_negative_ts = oc->avoid_negative_ts; in webm_chunk_init()
135 oc->internal->avoid_negative_ts_use_pts; in webm_chunk_init()
136 oc->avoid_negative_ts = 0; in webm_chunk_init()
158 AVFormatContext *oc = wc->avf; in webm_chunk_write_header() local
161 ret = avformat_write_header(oc, NULL); in webm_chunk_write_header()
162 ff_format_io_close(s, &oc->pb); in webm_chunk_write_header()
172 AVFormatContext *oc = wc->avf; in chunk_start() local
175 ret = avio_open_dyn_buf(&oc->pb); in chunk_start()
185 AVFormatContext *oc = wc->avf; in chunk_end() local
193 if (!oc->pb) in chunk_end()
198 av_write_frame(oc, NULL); in chunk_end()
199 buffer_size = avio_close_dyn_buf(oc->pb, &buffer); in chunk_end()
200 oc->pb = NULL; in chunk_end()
221 AVFormatContext *oc = wc->avf; in webm_chunk_write_packet() local
236 if (!oc->pb || (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO && in webm_chunk_write_packet()
247 return av_write_frame(oc, pkt); in webm_chunk_write_packet()
253 AVFormatContext *oc = wc->avf; in webm_chunk_write_trailer() local
256 if (!oc->pb) { in webm_chunk_write_trailer()
261 ret = av_write_trailer(oc); in webm_chunk_write_trailer()