comparison error.h @ 916:2860cc0b5562 libavutil

Make av_strerror() return -1 even in the case when av_strerror_r() is not defined. This allows applications to check if av_strerror() cannot provide a meaningful representation for the provided error code, without having to actually check the filled string.
author stefano
date Wed, 05 May 2010 21:44:47 +0000
parents a1a27468a9c5
children e34e8d654ded
comparison
equal deleted inserted replaced
915:a1a27468a9c5 916:2860cc0b5562
62 * In case of failure the global variable errno is set to indicate the 62 * In case of failure the global variable errno is set to indicate the
63 * error. Even in case of failure av_strerror() will print a generic 63 * error. Even in case of failure av_strerror() will print a generic
64 * error message indicating the errnum provided to errbuf. 64 * error message indicating the errnum provided to errbuf.
65 * 65 *
66 * @param errbuf_size the size in bytes of errbuf 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 int av_strerror(int errnum, char *errbuf, size_t errbuf_size); 70 int av_strerror(int errnum, char *errbuf, size_t errbuf_size);
70 71
71 #endif /* AVUTIL_ERROR_H */ 72 #endif /* AVUTIL_ERROR_H */