20#define _XOPEN_SOURCE 600
28#define AVERROR_INPUT_AND_OUTPUT_CHANGED (AVERROR_INPUT_CHANGED | AVERROR_OUTPUT_CHANGED)
30#define AVERROR_LIST(E, E2) \
31 E(BSF_NOT_FOUND, "Bitstream filter not found") \
32 E(BUG, "Internal bug, should not have happened") \
33 E2(BUG2, BUG, "Internal bug, should not have happened") \
34 E(BUFFER_TOO_SMALL, "Buffer too small") \
35 E(DECODER_NOT_FOUND, "Decoder not found") \
36 E(DEMUXER_NOT_FOUND, "Demuxer not found") \
37 E(ENCODER_NOT_FOUND, "Encoder not found") \
38 E(EOF, "End of file") \
39 E(EXIT, "Immediate exit requested") \
40 E(EXTERNAL, "Generic error in an external library") \
41 E(FILTER_NOT_FOUND, "Filter not found") \
42 E(INPUT_CHANGED, "Input changed") \
43 E(INVALIDDATA, "Invalid data found when processing input") \
44 E(MUXER_NOT_FOUND, "Muxer not found") \
45 E(OPTION_NOT_FOUND, "Option not found") \
46 E(OUTPUT_CHANGED, "Output changed") \
47 E(PATCHWELCOME, "Not yet implemented in FFmpeg, patches welcome") \
48 E(PROTOCOL_NOT_FOUND, "Protocol not found") \
49 E(STREAM_NOT_FOUND, "Stream not found") \
50 E(UNKNOWN, "Unknown error occurred") \
51 E(EXPERIMENTAL, "Experimental feature") \
52 E(INPUT_AND_OUTPUT_CHANGED, "Input and output changed") \
53 E(HTTP_BAD_REQUEST, "Server returned 400 Bad Request") \
54 E(HTTP_UNAUTHORIZED, "Server returned 401 Unauthorized (authorization failed)") \
55 E(HTTP_FORBIDDEN, "Server returned 403 Forbidden (access denied)") \
56 E(HTTP_NOT_FOUND, "Server returned 404 Not Found") \
57 E(HTTP_TOO_MANY_REQUESTS, "Server returned 429 Too Many Requests") \
58 E(HTTP_OTHER_4XX, "Server returned 4XX Client Error, but not one of 40{0,1,3,4}") \
59 E(HTTP_SERVER_ERROR, "Server returned 5XX Server Error reply") \
61#define STRERROR_LIST(E) \
62 E(E2BIG, "Argument list too long") \
63 E(EACCES, "Permission denied") \
64 E(EAGAIN, "Resource temporarily unavailable") \
65 E(EBADF, "Bad file descriptor") \
66 E(EBUSY, "Device or resource busy") \
67 E(ECHILD, "No child processes") \
68 E(EDEADLK, "Resource deadlock avoided") \
69 E(EDOM, "Numerical argument out of domain") \
70 E(EEXIST, "File exists") \
71 E(EFAULT, "Bad address") \
72 E(EFBIG, "File too large") \
73 E(EILSEQ, "Illegal byte sequence") \
74 E(EINTR, "Interrupted system call") \
75 E(EINVAL, "Invalid argument") \
77 E(EISDIR, "Is a directory") \
78 E(EMFILE, "Too many open files") \
79 E(EMLINK, "Too many links") \
80 E(ENAMETOOLONG, "File name too long") \
81 E(ENFILE, "Too many open files in system") \
82 E(ENODEV, "No such device") \
83 E(ENOENT, "No such file or directory") \
84 E(ENOEXEC, "Exec format error") \
85 E(ENOLCK, "No locks available") \
86 E(ENOMEM, "Cannot allocate memory") \
87 E(ENOSPC, "No space left on device") \
88 E(ENOSYS, "Function not implemented") \
89 E(ENOTDIR, "Not a directory") \
90 E(ENOTEMPTY, "Directory not empty") \
91 E(ENOTTY, "Inappropriate I/O control operation") \
92 E(ENXIO, "No such device or address") \
93 E(EPERM, "Operation not permitted") \
94 E(EPIPE, "Broken pipe") \
95 E(ERANGE, "Result too large") \
96 E(EROFS, "Read-only file system") \
97 E(ESPIPE, "Illegal seek") \
98 E(ESRCH, "No such process") \
99 E(EXDEV, "Cross-device link") \
102#define OFFSET(CODE, DESC) \
103 ERROR_ ## CODE ## _OFFSET, \
104 ERROR_ ## CODE ## _END_OFFSET = ERROR_ ## CODE ## _OFFSET + sizeof(DESC) - 1,
105#define NOTHING(CODE, CODE2, DESC)
112#define STRING(CODE, DESC) DESC "\0"
124#define ENTRY(CODE, DESC) { .num = AVERROR_ ## CODE, .offset = ERROR_ ## CODE ## _OFFSET },
125#define ENTRY2(CODE, CODE2, DESC) { .num = AVERROR_ ## CODE, .offset = ERROR_ ## CODE2 ## _OFFSET },
129#define ENTRY(CODE, DESC) { .num = AVERROR(CODE), .offset = ERROR_ ## CODE ## _OFFSET },
143 int ret =
AVERROR(strerror_r(
AVUNERROR((
unsigned)errnum), errbuf, errbuf_size));
148 snprintf(errbuf, errbuf_size,
"Error number %d occurred", errnum);
#define i(width, name, range_min, range_max)
#define ENTRY(idx, string)
#define AVERROR_LIST(E, E2)
#define ENTRY2(CODE, CODE2, DESC)
static const char error_stringtable[]
static const struct ErrorEntry error_entries[]
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
Put a description of the AVERROR code errnum in errbuf.
size_t av_strlcpy(char *dst, const char *src, size_t size)
Copy the string src to dst, but no more than size - 1 bytes, and null-terminate dst.
#define NOTHING(PROFILE, W, H, NUM_SLICES, TAB_W, TAB_H)
Utility Preprocessor macros.
#define FF_ARRAY_ELEMS(a)
#define STRING(NAME, TYPE)