ffmetadec.c File Reference
#include "libavutil/mathematics.h"
#include "avformat.h"
#include "ffmeta.h"
#include "internal.h"
#include "libavutil/dict.h"
Include dependency graph for ffmetadec.c:

Go to the source code of this file.

Functions

static int probe (AVProbeData *p)
 
static void get_line (AVIOContext *s, uint8_t *buf, int size)
 
static AVChapterread_chapter (AVFormatContext *s)
 
static uint8_tunescape (uint8_t *buf, int size)
 
static int read_tag (uint8_t *line, AVDictionary **m)
 
static int read_header (AVFormatContext *s)
 
static int read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

AVInputFormat ff_ffmetadata_demuxer
 

Function Documentation

static void get_line ( AVIOContext s,
uint8_t buf,
int  size 
)
static

Definition at line 35 of file ffmetadec.c.

Referenced by read_chapter(), and read_header().

static int probe ( AVProbeData p)
static

Definition at line 28 of file ffmetadec.c.

static AVChapter* read_chapter ( AVFormatContext s)
static

Definition at line 56 of file ffmetadec.c.

Referenced by read_header().

static int read_header ( AVFormatContext s)
static

Definition at line 126 of file ffmetadec.c.

static int read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 164 of file ffmetadec.c.

static int read_tag ( uint8_t line,
AVDictionary **  m 
)
static

Definition at line 98 of file ffmetadec.c.

Referenced by read_header().

static uint8_t* unescape ( uint8_t buf,
int  size 
)
static

Definition at line 81 of file ffmetadec.c.

Referenced by read_tag().

Variable Documentation

AVInputFormat ff_ffmetadata_demuxer
Initial value:
= {
.name = "ffmetadata",
.long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text"),
.read_probe = probe,
.read_header = read_header,
.read_packet = read_packet,
}
static int read_header(AVFormatContext *s)
Definition: ffmetadec.c:126
static int read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ffmetadec.c:164
static int probe(AVProbeData *p)
Definition: ffmetadec.c:28
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...

Definition at line 169 of file ffmetadec.c.