Lines Matching refs:ttml_ctx
58 AVFormatContext *ttml_ctx,
69 if ((ret = avformat_write_header(ttml_ctx, NULL)) < 0) {
85 ttml_ctx->streams[pkt->stream_index]->time_base);
87 if ((ret = av_write_frame(ttml_ctx, pkt)) < 0) {
94 if ((ret = av_write_trailer(ttml_ctx)) < 0)
109 AVFormatContext *ttml_ctx = NULL;
116 if ((ret = mov_init_ttml_writer(track, &ttml_ctx)) < 0) {
124 avio_write(ttml_ctx->pb, empty_ttml_document,
131 if ((ret = mov_write_ttml_document_from_queue(s, ttml_ctx, track, pkt,
145 int buf_len = avio_close_dyn_buf(ttml_ctx->pb, &buf);
146 ttml_ctx->pb = NULL;
164 if (ttml_ctx)
165 ffio_free_dyn_buf(&ttml_ctx->pb);
167 avformat_free_context(ttml_ctx);