FFmpeg
Functions | Variables
ffmetaenc.c File Reference
#include <inttypes.h>
#include "avformat.h"
#include "ffmeta.h"
#include "mux.h"
#include "libavutil/dict.h"

Go to the source code of this file.

Functions

static void write_escape_str (AVIOContext *s, const uint8_t *str)
 
static void write_tags (AVIOContext *s, AVDictionary *m)
 
static int write_header (AVFormatContext *s)
 
static int write_trailer (AVFormatContext *s)
 
static int write_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

const FFOutputFormat ff_ffmetadata_muxer
 

Function Documentation

◆ write_escape_str()

static void write_escape_str ( AVIOContext s,
const uint8_t *  str 
)
static

Definition at line 30 of file ffmetaenc.c.

Referenced by write_tags().

◆ write_tags()

static void write_tags ( AVIOContext s,
AVDictionary m 
)
static

Definition at line 42 of file ffmetaenc.c.

Referenced by write_trailer().

◆ write_header()

static int write_header ( AVFormatContext s)
static

Definition at line 53 of file ffmetaenc.c.

◆ write_trailer()

static int write_trailer ( AVFormatContext s)
static

Definition at line 61 of file ffmetaenc.c.

◆ write_packet()

static int write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 86 of file ffmetaenc.c.

Variable Documentation

◆ ff_ffmetadata_muxer

const FFOutputFormat ff_ffmetadata_muxer
Initial value:
= {
.p.name = "ffmetadata",
.p.long_name = NULL_IF_CONFIG_SMALL("FFmpeg metadata in text"),
.p.extensions = "ffmeta",
.write_header = write_header,
.write_packet = write_packet,
.write_trailer = write_trailer,
}

Definition at line 91 of file ffmetaenc.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
write_header
static int write_header(AVFormatContext *s)
Definition: ffmetaenc.c:53
write_packet
static int write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ffmetaenc.c:86
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:115
AVFMT_NOSTREAMS
#define AVFMT_NOSTREAMS
Format does not require any streams.
Definition: avformat.h:484
write_trailer
static int write_trailer(AVFormatContext *s)
Definition: ffmetaenc.c:61