32 int64_t sec,
min, hour;
33 sec = millisec / 1000;
34 millisec -= 1000 * sec;
43 avio_printf(pb,
"%02"PRId64
":%02"PRId64
".%03"PRId64
"", min, sec, millisec);
62 int id_size, settings_size;
70 if (
id && id_size > 0)
80 if (settings && settings_size > 0)
95 .mime_type =
"text/vtt",
The optional first identifier line of a WebVTT cue.
static int webvtt_write_packet(AVFormatContext *ctx, AVPacket *pkt)
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
uint8_t * av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
AVIOContext * pb
I/O context.
AVOutputFormat ff_webvtt_muxer
The optional settings (rendering instructions) that immediately follow the timestamp specifier of a W...
static int webvtt_write_header(AVFormatContext *ctx)
static void webvtt_write_time(AVIOContext *pb, int64_t millisec)
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...