Lines Matching defs:oformat

91 int avformat_alloc_output_context2(AVFormatContext **avctx, const AVOutputFormat *oformat,
101 if (!oformat) {
103 oformat = av_guess_format(format, NULL, NULL);
104 if (!oformat) {
110 oformat = av_guess_format(NULL, filename, NULL);
111 if (!oformat) {
120 s->oformat = oformat;
121 if (s->oformat->priv_data_size > 0) {
122 s->priv_data = av_mallocz(s->oformat->priv_data_size);
125 if (s->oformat->priv_class) {
126 *(const AVClass**)s->priv_data= s->oformat->priv_class;
159 for (int n = 0; s->oformat->codec_tag[n]; n++) {
160 avctag = s->oformat->codec_tag[n];
184 const AVOutputFormat *of = s->oformat;
193 if (s->priv_data && s->oformat->priv_class && *(const AVClass**)s->priv_data==s->oformat->priv_class &&
295 const uint32_t otag = av_codec_get_tag(s->oformat->codec_tag, par->codec_id);
345 if (s->oformat->init) {
346 if ((ret = s->oformat->init(s)) < 0) {
347 if (s->oformat->deinit)
348 s->oformat->deinit(s);
403 if (s->oformat->flags & (AVFMT_TS_NEGATIVE | AVFMT_NOTIMESTAMPS)) {
419 else if (s->flush_packets && !(s->oformat->flags & AVFMT_NOFILE))
427 if (s->oformat && s->oformat->deinit && si->initialized)
428 s->oformat->deinit(s);
444 if (s->oformat->init && ret) {
465 if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
467 if (s->oformat->write_header) {
468 ret = s->oformat->write_header(s);
475 if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
504 !(s->oformat->flags & AVFMT_NOTIMESTAMPS) &&
545 ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) &&
728 ret = s->oformat->write_uncoded_frame(s, pkt->stream_index, frame, 0);
730 ret = s->oformat->write_packet(s, pkt);
766 if (!(s->oformat->flags & AVFMT_NOTIMESTAMPS)) {
787 ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) && sti->cur_dts >= pkt->dts) ||
1081 if (s->oformat->check_bitstream) {
1083 if ((ret = s->oformat->check_bitstream(s, &sti->pub, pkt)) < 0)
1122 if ((ret = compute_muxer_pkt_fields(s, st, pkt)) < 0 && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
1127 if (pkt->dts == AV_NOPTS_VALUE && !(s->oformat->flags & AVFMT_NOTIMESTAMPS))
1200 if (s->oformat->flags & AVFMT_ALLOW_FLUSH) {
1201 ret = s->oformat->write_packet(s, NULL);
1276 if (s->oformat->write_trailer) {
1277 if (!(s->oformat->flags & AVFMT_NOFILE) && s->pb)
1280 ret = s->oformat->write_trailer(s);
1282 s->oformat->write_trailer(s);
1296 if (s->oformat->priv_class)
1306 if (!s->oformat || !s->oformat->get_output_timestamp)
1308 s->oformat->get_output_timestamp(s, stream, dts, wall);
1397 av_assert0(s->oformat);
1398 if (!s->oformat->write_uncoded_frame) {
1448 av_assert0(s->oformat);
1449 if (!s->oformat->write_uncoded_frame)
1451 return s->oformat->write_uncoded_frame(s, stream_index, NULL,