Libav
Functions | Variables
srtdec.c File Reference
#include "avformat.h"
#include "internal.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Functions

static int srt_probe (AVProbeData *p)
 
static int srt_read_header (AVFormatContext *s)
 
static int64_t get_pts (const char *buf)
 
static int is_eol (char c)
 
static int srt_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_srt_demuxer
 

Function Documentation

static int srt_probe ( AVProbeData p)
static

Definition at line 26 of file srtdec.c.

static int srt_read_header ( AVFormatContext s)
static

Definition at line 43 of file srtdec.c.

static int64_t get_pts ( const char *  buf)
static

Definition at line 54 of file srtdec.c.

Referenced by srt_read_packet().

static int is_eol ( char  c)
inlinestatic

Definition at line 70 of file srtdec.c.

Referenced by srt_read_packet().

static int srt_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 75 of file srtdec.c.

Variable Documentation

AVInputFormat ff_srt_demuxer
Initial value:
= {
.name = "srt",
.long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle"),
.read_probe = srt_probe,
.read_header = srt_read_header,
.read_packet = srt_read_packet,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:145
static int srt_probe(AVProbeData *p)
Definition: srtdec.c:26
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:417
static int srt_read_header(AVFormatContext *s)
Definition: srtdec.c:43
static int srt_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: srtdec.c:75

Definition at line 95 of file srtdec.c.