Revision 8d67218b libavutil/error.c

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) {

Also available in: Unified diff