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);
68 int id_size, settings_size;
76 if (
id && id_size > 0)
86 if (settings && settings_size > 0)
101 .mime_type =
"text/vtt",
The optional first identifier line of a WebVTT cue.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream ** streams
A list of all streams in the file.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVCodecContext * codec
Codec context associated with this stream.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
int void avio_flush(AVIOContext *s)
Force flushing of buffered data.
AVIOContext * pb
I/O context.
main external API structure.
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