[FFmpeg-devel] [PATCH] Implement av_strerror()

Michael Niedermayer michaelni
Sun Mar 14 19:22:19 CET 2010


On Sun, Mar 14, 2010 at 07:12:07PM +0100, Stefano Sabatini wrote:
> On date Sunday 2010-03-14 15:52:41 +0000, M?ns Rullg?rd encoded:
> > Stefano Sabatini <stefano.sabatini-lala at poste.it> writes:
[...]
> +
> +int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
> +{
> +    int ret = 0;
> +    const char *errstr = NULL;
> +    *errbuf = 0;
> +
> +    switch (errnum) {

> +#if LIBAVUTIL_VERSION_MAJOR < 51
> +    case AVERROR_IO:           errstr = "I/O error"; break;
> +    case AVERROR_NOENT:        errstr = "No such file or directory"; break;
> +    case AVERROR_NOMEM:        errstr = "Not enough memory"; break;
> +#endif

Is that what strerror_r() prints not good?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100314/557b9973/attachment.pgp>



More information about the ffmpeg-devel mailing list