#include <strings.h>
#include "avformat.h"
#include "metadata.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Defines | |
#define | SIZE_OFFSET(x) sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) |
#define | FILL_METADATA(s, key, value) |
#define | FILL_METADATA_STR(s, key) |
#define | FILL_METADATA_INT(s, key) |
Functions | |
void | ff_metadata_demux_compat (AVFormatContext *ctx) |
void | ff_metadata_mux_compat (AVFormatContext *ctx) |
Variables | |
struct { | |
const char name [16] | |
int size | |
int offset | |
} | compat_tab [] |
#define FILL_METADATA | ( | s, | |||
key, | |||||
value | ) |
Value:
{ \ if (!av_metadata_get(s->metadata, #key, NULL, 0)) \ av_metadata_set2(&s->metadata, #key, value, 0); \ }
Definition at line 110 of file metadata_compat.c.
#define FILL_METADATA_INT | ( | s, | |||
key | ) |
Value:
{ \ char number[10]; \ snprintf(number, sizeof(number), "%d", s->key); \ if(s->key) FILL_METADATA(s, key, number) }
Definition at line 116 of file metadata_compat.c.
Referenced by ff_metadata_mux_compat().
#define FILL_METADATA_STR | ( | s, | |||
key | ) |
Value:
{ \ if (s->key && *s->key) FILL_METADATA(s, key, s->key); }
Definition at line 114 of file metadata_compat.c.
Referenced by ff_metadata_mux_compat().
#define SIZE_OFFSET | ( | x | ) | sizeof(((AVFormatContext*)0)->x),offsetof(AVFormatContext,x) |
Definition at line 28 of file metadata_compat.c.
void ff_metadata_demux_compat | ( | AVFormatContext * | ctx | ) |
void ff_metadata_mux_compat | ( | AVFormatContext * | ctx | ) |
struct { ... } compat_tab[] [static] |
Referenced by ff_metadata_demux_compat().
const char name[16] |
Definition at line 31 of file metadata_compat.c.
int offset |
Definition at line 33 of file metadata_compat.c.
int size |
Definition at line 32 of file metadata_compat.c.