Revision 8d67218b

View differences:

libavutil/error.c
25 25
    const char *errstr = NULL;
26 26

  
27 27
    switch (errnum) {
28
    case AVERROR_EOF:               errstr = "End of file"; break;
29
    case AVERROR_INVALIDDATA:       errstr = "Invalid data found when processing input"; break;
28
    case AVERROR_BSF_NOT_FOUND:     errstr = "Bitstream filter not found"                   ; break;
29
    case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"                            ; break;
30
    case AVERROR_DEMUXER_NOT_FOUND: errstr = "Demuxer not found"                            ; break;
31
    case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"                            ; break;
32
    case AVERROR_EOF:               errstr = "End of file"                                  ; break;
33
    case AVERROR_EXIT:              errstr = "Immediate exit requested"                     ; break;
34
    case AVERROR_FILTER_NOT_FOUND:  errstr = "Filter not found"                             ; break;
35
    case AVERROR_INVALIDDATA:       errstr = "Invalid data found when processing input"     ; break;
36
    case AVERROR_MUXER_NOT_FOUND:   errstr = "Muxer not found"                              ; break;
37
    case AVERROR_OPTION_NOT_FOUND:  errstr = "Option not found"                             ; break;
30 38
    case AVERROR_PATCHWELCOME:      errstr = "Not yet implemented in Libav, patches welcome"; break;
31
    case AVERROR_DEMUXER_NOT_FOUND: errstr = "Demuxer not found"; break;
32
    case AVERROR_MUXER_NOT_FOUND:   errstr = "Muxer not found"; break;
33
    case AVERROR_DECODER_NOT_FOUND: errstr = "Decoder not found"; break;
34
    case AVERROR_ENCODER_NOT_FOUND: errstr = "Encoder not found"; break;
35
    case AVERROR_OPTION_NOT_FOUND:  errstr = "Option not found"; break;
36
    case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found"; break;
37
    case AVERROR_FILTER_NOT_FOUND:  errstr = "Filter not found"; break;
38
    case AVERROR_BSF_NOT_FOUND:     errstr = "Bitstream filter not found"; break;
39
    case AVERROR_STREAM_NOT_FOUND:  errstr = "Stream not found"; break;
40
    case AVERROR_EXIT:              errstr = "Immediate exit requested"; break;
39
    case AVERROR_PROTOCOL_NOT_FOUND:errstr = "Protocol not found"                           ; break;
40
    case AVERROR_STREAM_NOT_FOUND:  errstr = "Stream not found"                             ; break;
41 41
    }
42 42

  
43 43
    if (errstr) {
libavutil/error.h
37 37
#define AVUNERROR(e) (e)
38 38
#endif
39 39

  
40
#define AVERROR_EOF             (-MKTAG('E','O','F',' ')) ///< End of file
41

  
42
#define AVERROR_PATCHWELCOME    (-MKTAG('P','A','W','E')) ///< Not yet implemented in Libav, patches welcome
43

  
44
#define AVERROR_INVALIDDATA     (-MKTAG('I','N','D','A')) ///< Invalid data found when processing input
45

  
46
#define AVERROR_DEMUXER_NOT_FOUND  (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
47
#define AVERROR_MUXER_NOT_FOUND    (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found
40
#define AVERROR_BSF_NOT_FOUND      (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
48 41
#define AVERROR_DECODER_NOT_FOUND  (-MKTAG(0xF8,'D','E','C')) ///< Decoder not found
42
#define AVERROR_DEMUXER_NOT_FOUND  (-MKTAG(0xF8,'D','E','M')) ///< Demuxer not found
49 43
#define AVERROR_ENCODER_NOT_FOUND  (-MKTAG(0xF8,'E','N','C')) ///< Encoder not found
44
#define AVERROR_EOF                (-MKTAG( 'E','O','F',' ')) ///< End of file
45
#define AVERROR_EXIT               (-MKTAG( 'E','X','I','T')) ///< Immediate exit was requested; the called function should not be restarted
46
#define AVERROR_FILTER_NOT_FOUND   (-MKTAG(0xF8,'F','I','L')) ///< Filter not found
47
#define AVERROR_INVALIDDATA        (-MKTAG( 'I','N','D','A')) ///< Invalid data found when processing input
48
#define AVERROR_MUXER_NOT_FOUND    (-MKTAG(0xF8,'M','U','X')) ///< Muxer not found
50 49
#define AVERROR_OPTION_NOT_FOUND   (-MKTAG(0xF8,'O','P','T')) ///< Option not found
50
#define AVERROR_PATCHWELCOME       (-MKTAG( 'P','A','W','E')) ///< Not yet implemented in Libav, patches welcome
51 51
#define AVERROR_PROTOCOL_NOT_FOUND (-MKTAG(0xF8,'P','R','O')) ///< Protocol not found
52
#define AVERROR_FILTER_NOT_FOUND   (-MKTAG(0xF8,'F','I','L')) ///< Filter not found
53
#define AVERROR_BSF_NOT_FOUND      (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
54 52
#define AVERROR_STREAM_NOT_FOUND   (-MKTAG(0xF8,'S','T','R')) ///< Stream not found
55 53

  
56
#define AVERROR_EXIT (-MKTAG('E','X','I','T')) ///< Immediate exit was requested; the called function should not be restarted
57

  
58 54
/**
59 55
 * Put a description of the AVERROR code errnum in errbuf.
60 56
 * In case of failure the global variable errno is set to indicate the

Also available in: Unified diff