20 #define _XOPEN_SOURCE 600
31 #define ERROR_TAG(tag) AVERROR_##tag, #tag
33 {
ERROR_TAG(BSF_NOT_FOUND),
"Bitstream filter not found" },
34 {
ERROR_TAG(BUG),
"Internal bug, should not have happened" },
35 {
ERROR_TAG(BUG2),
"Internal bug, should not have happened" },
36 {
ERROR_TAG(BUFFER_TOO_SMALL),
"Buffer too small" },
37 {
ERROR_TAG(DECODER_NOT_FOUND),
"Decoder not found" },
38 {
ERROR_TAG(DEMUXER_NOT_FOUND),
"Demuxer not found" },
39 {
ERROR_TAG(ENCODER_NOT_FOUND),
"Encoder not found" },
41 {
ERROR_TAG(EXIT),
"Immediate exit requested" },
42 {
ERROR_TAG(EXTERNAL),
"Generic error in an external library" },
43 {
ERROR_TAG(FILTER_NOT_FOUND),
"Filter not found" },
44 {
ERROR_TAG(INVALIDDATA),
"Invalid data found when processing input" },
45 {
ERROR_TAG(MUXER_NOT_FOUND),
"Muxer not found" },
46 {
ERROR_TAG(OPTION_NOT_FOUND),
"Option not found" },
47 {
ERROR_TAG(PATCHWELCOME),
"Not yet implemented in FFmpeg, patches welcome" },
48 {
ERROR_TAG(PROTOCOL_NOT_FOUND),
"Protocol not found" },
49 {
ERROR_TAG(STREAM_NOT_FOUND),
"Stream not found" },
51 {
ERROR_TAG(EXPERIMENTAL),
"Experimental feature" },
60 if (errnum == error_entries[i].
num) {
61 entry = &error_entries[i];
74 snprintf(errbuf, errbuf_size,
"Error number %d occurred", errnum);
89 const struct error_entry *entry = &error_entries[i];
93 for (i = 0; i < 256; i++) {