34 sec = millisec / 1000;
35 millisec -= 1000 * sec;
44 avio_printf(pb,
"%02"PRId64
":%02"PRId64
".%03"PRId64
"",
min, sec, millisec);
62 size_t id_size, settings_size;
63 int id_size_int, settings_size_int;
64 uint8_t *
id, *settings;
71 if (id_size > INT_MAX)
74 id_size_int = id_size;
75 if (
id && id_size_int > 0)
85 if (settings_size > INT_MAX)
88 settings_size_int = settings_size;
89 if (settings && settings_size_int > 0)
90 avio_printf(pb,
" %.*s", settings_size_int, settings);
103 .p.extensions =
"vtt",
104 .p.mime_type =
"text/vtt",
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2
Writes a formatted string to the context.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
@ AV_PKT_DATA_WEBVTT_SETTINGS
The optional settings (rendering instructions) that immediately follow the timestamp specifier of a W...
@ AV_PKT_DATA_WEBVTT_IDENTIFIER
The optional first identifier line of a WebVTT cue.
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, size_t *size)
Get side information from packet.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
#define FF_OFMT_FLAG_ONLY_DEFAULT_CODECS
If this flag is set, then the only permitted audio/video/subtitle codec ids are AVOutputFormat....
This structure stores compressed data.
static AVFormatContext * ctx