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.
AVStream ** streams
A list of all streams in the file.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
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. ...
int void avio_flush(AVIOContext *s)
Force flushing of buffered data.
AVIOContext * pb
I/O context.
The optional settings (rendering instructions) that immediately follow the timestamp specifier of a W...
uint8_t * av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int *size)
Get side information from packet.
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2