• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching defs:oc

134     AVFormatContext *oc;
137 seg->avf = oc = avformat_alloc_context();
138 if (!oc)
141 oc->oformat = seg->oformat;
142 oc->interrupt_callback = s->interrupt_callback;
143 av_dict_copy(&oc->metadata, s->metadata, 0);
149 if (!(st = avformat_new_stream(oc, NULL)))
154 if (!oc->oformat->codec_tag ||
155 av_codec_get_id (oc->oformat->codec_tag, icodec->codec_tag) == ocodec->codec_id ||
156 av_codec_get_tag(oc->oformat->codec_tag, icodec->codec_id) <= 0) {
170 AVFormatContext *oc = seg->avf;
175 if (av_get_frame_filename(oc->filename, sizeof(oc->filename),
177 av_log(oc, AV_LOG_ERROR, "Invalid segment filename template '%s'\n", s->filename);
182 size = strlen(av_basename(oc->filename)) + 1;
191 av_basename(oc->filename));
199 AVFormatContext *oc = seg->avf;
203 avformat_free_context(oc);
207 oc = seg->avf;
217 if ((err = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
219 av_log(s, AV_LOG_ERROR, "Failed to open segment '%s'\n", oc->filename);
223 if (oc->oformat->priv_class && oc->priv_data)
224 av_opt_set(oc->priv_data, "resend_headers", "1", 0); /* mpegts specific */
227 if ((err = avformat_write_header(oc, NULL)) < 0)
308 AVFormatContext *oc = seg->avf;
311 av_write_frame(oc, NULL); /* Flush any buffered data (fragmented mp4) */
313 ret = av_write_trailer(oc);
317 oc->filename);
361 avio_close(oc->pb);
563 AVFormatContext *oc = NULL;
630 oc = seg->avf;
636 if ((ret = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
638 av_log(s, AV_LOG_ERROR, "Failed to open segment '%s'\n", oc->filename);
642 if ((ret = open_null_ctx(&oc->pb)) < 0)
646 if ((ret = avformat_write_header(oc, NULL)) < 0) {
647 avio_close(oc->pb);
652 if (oc->avoid_negative_ts > 0 && s->avoid_negative_ts < 0)
656 close_null_ctx(oc->pb);
657 if ((ret = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
773 AVFormatContext *oc = seg->avf;
780 open_null_ctx(&oc->pb);
781 ret = av_write_trailer(oc);
782 close_null_ctx(oc->pb);
802 avformat_free_context(oc);