Revision e2959f45

View differences:

libavutil/avutil.h
41 41

  
42 42
#define LIBAVUTIL_VERSION_MAJOR 50
43 43
#define LIBAVUTIL_VERSION_MINOR 15
44
#define LIBAVUTIL_VERSION_MICRO  0
44
#define LIBAVUTIL_VERSION_MICRO  1
45 45

  
46 46
#define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
47 47
                                               LIBAVUTIL_VERSION_MINOR, \
libavutil/error.c
36 36
    } else {
37 37
#if HAVE_STRERROR_R
38 38
        ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size);
39
#else
40
        ret = -1;
39 41
#endif
40
        if (!HAVE_STRERROR_R || ret < 0)
42
        if (ret < 0)
41 43
            snprintf(errbuf, errbuf_size, "Error number %d occurred", errnum);
42 44
    }
43 45

  
libavutil/error.h
64 64
 * error message indicating the errnum provided to errbuf.
65 65
 *
66 66
 * @param errbuf_size the size in bytes of errbuf
67
 * @return 0 on success, a negative value otherwise
67
 * @return 0 on success, a negative value if a description for errnum
68
 * cannot be found
68 69
 */
69 70
int av_strerror(int errnum, char *errbuf, size_t errbuf_size);
70 71

  

Also available in: Unified diff