WebVTT subtitle demuxer.
More...
Go to the source code of this file.
WebVTT subtitle demuxer.
- See also
- http://dev.w3.org/html5/webvtt/
Definition in file webvttdec.c.
◆ SET_SIDE_DATA
Value:do { \
if (!buf) { \
} \
} \
} while (0)
static av_cold int end(AVCodecContext *avctx)
uint8_t * av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size)
Allocate new information of a packet.
Referenced by webvtt_read_header().
◆ OFFSET
◆ KIND_FLAGS
◆ webvtt_probe()
◆ read_ts()
static int64_t read_ts |
( |
const char * |
s | ) |
|
|
static |
◆ webvtt_read_header()
◆ webvtt_read_packet()
◆ webvtt_read_seek()
static int webvtt_read_seek |
( |
AVFormatContext * |
s, |
|
|
int |
stream_index, |
|
|
int64_t |
min_ts, |
|
|
int64_t |
ts, |
|
|
int64_t |
max_ts, |
|
|
int |
flags |
|
) |
| |
|
static |
◆ webvtt_read_close()
◆ options
Initial value:= {
{
"subtitles",
"WebVTT subtitles kind", 0,
AV_OPT_TYPE_CONST, { .i64 = 0 }, INT_MIN, INT_MAX, 0,
"webvtt_kind" },
}
Definition at line 197 of file webvttdec.c.
◆ webvtt_demuxer_class
Initial value:= {
.class_name = "WebVTT demuxer",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
Definition at line 206 of file webvttdec.c.
◆ ff_webvtt_demuxer
Initial value:= {
.name = "webvtt",
.extensions = "vtt",
}
static av_cold int read_close(AVFormatContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int read_header(FFV1Context *f)
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition at line 213 of file webvttdec.c.