Lines Matching refs:wc
53 WebMChunkContext *wc = s->priv_data;
64 if (!wc->header_filename) {
69 wc->prev_pts = AV_NOPTS_VALUE;
75 ret = avformat_alloc_output_context2(&wc->avf, oformat, NULL, NULL);
78 oc = wc->avf;
80 ff_format_set_url(oc, wc->header_filename);
81 wc->header_filename = NULL;
100 if (wc->http_method)
101 if ((ret = av_dict_set(&dict, "method", wc->http_method, 0)) < 0)
111 wc->chunk_duration, 0)) < 0 ||
138 WebMChunkContext *wc = s->priv_data;
143 s->url, wc->chunk_index - 1) < 0) {
152 WebMChunkContext *wc = s->priv_data;
153 AVFormatContext *oc = wc->avf;
158 wc->header_written = 1;
166 WebMChunkContext *wc = s->priv_data;
167 AVFormatContext *oc = wc->avf;
173 wc->chunk_index++;
179 WebMChunkContext *wc = s->priv_data;
180 AVFormatContext *oc = wc->avf;
199 if (wc->http_method)
200 if ((ret = av_dict_set(&options, "method", wc->http_method, 0)) < 0)
215 WebMChunkContext *wc = s->priv_data;
216 AVFormatContext *oc = wc->avf;
221 if (wc->prev_pts != AV_NOPTS_VALUE)
222 wc->duration_written += av_rescale_q(pkt->pts - wc->prev_pts,
225 wc->prev_pts = pkt->pts;
234 wc->duration_written >= wc->chunk_duration)) {
235 wc->duration_written = 0;
247 WebMChunkContext *wc = s->priv_data;
248 AVFormatContext *oc = wc->avf;
264 WebMChunkContext *wc = s->priv_data;
266 if (!wc->avf)
269 if (wc->header_written)
270 ffio_free_dyn_buf(&wc->avf->pb);
272 ff_format_io_close(s, &wc->avf->pb);
273 avformat_free_context(wc->avf);
274 wc->avf = NULL;