Go to the source code of this file.
|
| #define | AV_LOG(...) av_log(NULL, AV_LOG_FATAL, __VA_ARGS__) |
| |
| #define | ERR_INTERNAL(msg, ...) |
| |
| #define | ERR(msg) ERR_INTERNAL(msg, ) |
| |
| #define | ERR_EXT(msg, ...) ERR_INTERNAL(msg, , __VA_ARGS__) |
| |
| #define | ARRAY_CHECK(field, var, type, is_sentinel, check, sentinel_check) |
| |
| #define | CHECK(TYPE, type) (codec2->cb_type == FF_CODEC_CB_TYPE_ ## TYPE && !codec2->cb.type) |
| |
◆ AV_LOG
◆ ERR_INTERNAL
| #define ERR_INTERNAL |
( |
|
msg, |
|
|
|
... |
|
) |
| |
Value:do { \
AV_LOG(msg, codec->name __VA_ARGS__); \
ret = 1; \
} while (0)
Definition at line 32 of file avcodec.c.
◆ ERR
◆ ERR_EXT
| #define ERR_EXT |
( |
|
msg, |
|
|
|
... |
|
) |
| ERR_INTERNAL(msg, , __VA_ARGS__) |
◆ ARRAY_CHECK
| #define ARRAY_CHECK |
( |
|
field, |
|
|
|
var, |
|
|
|
type, |
|
|
|
is_sentinel, |
|
|
|
check, |
|
|
|
sentinel_check |
|
) |
| |
Value:do { \
const
type *ptr = codec->field; \
if (!ptr) \
break; \
type var = *ptr; \
if (is_sentinel) { \
ERR(
"Codec %s sets " #
field ", but without valid elements.\n"); \
break; \
} \
do { \
ERR(
"Codec's %s " #
field " array contains invalid element\n");\
break; \
} \
++ptr; \
var = *ptr; \
} while (!(is_sentinel)); \
if (!(sentinel_check)) { \
ERR(
"Codec's %s " #
field " array has malformed sentinel\n"); \
break; \
} \
} while (0)
Definition at line 59 of file avcodec.c.
◆ CHECK
| #define CHECK |
( |
|
TYPE, |
|
|
|
type |
|
) |
| (codec2->cb_type == FF_CODEC_CB_TYPE_ ## TYPE && !codec2->cb.type) |
◆ get_type_string()
| static const char* get_type_string |
( |
enum AVMediaType |
type | ) |
|
|
static |
◆ priv_data_size_wrong()
| static int priv_data_size_wrong |
( |
const FFCodec * |
codec | ) |
|
|
static |
◆ main()