Lines Matching refs:avf
37 static int srt_write_header(AVFormatContext *avf)
39 SRTContext *srt = avf->priv_data;
41 if (avf->nb_streams != 1 ||
42 avf->streams[0]->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE) {
43 av_log(avf, AV_LOG_ERROR,
47 if (avf->streams[0]->codecpar->codec_id != AV_CODEC_ID_TEXT &&
48 avf->streams[0]->codecpar->codec_id != AV_CODEC_ID_SUBRIP) {
49 av_log(avf, AV_LOG_ERROR,
51 avcodec_get_name(avf->streams[0]->codecpar->codec_id));
54 avpriv_set_pts_info(avf->streams[0], 64, 1, 1000);
59 static int srt_write_packet(AVFormatContext *avf, AVPacket *pkt)
61 SRTContext *srt = avf->priv_data;
77 av_log(avf, AV_LOG_WARNING,
82 avio_printf(avf->pb, "%d\n%02d:%02d:%02d,%03d --> %02d:%02d:%02d,%03d",
89 avio_printf(avf->pb, " X1:%03d X2:%03d Y1:%03d Y2:%03d",
91 avio_printf(avf->pb, "\n");
93 avio_write(avf->pb, pkt->data, pkt->size);
94 avio_write(avf->pb, "\n\n", 2);