int av_strerror(int errnum, char *errbuf, size_t errbuf_size)

{

    int ret = 0, i;

    struct error_entry *entry = NULL;



    for (i = 0; i < FF_ARRAY_ELEMS(error_entries); i++) {

        if (errnum == error_entries[i].num) {

            entry = &error_entries[i];

            break;

        }

    }

    if (entry) {

        av_strlcpy(errbuf, entry->str, errbuf_size);

    } else {

#if HAVE_STRERROR_R

        ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size);

#else

        ret = -1;

#endif

        if (ret < 0)

            snprintf(errbuf, errbuf_size, "Error number %d occurred", errnum);

    }



    return ret;

}

int av_strerror(int errnum, char *errbuf, size_t errbuf_size)

{

    int ret = 0, i;

    struct error_entry *entry = NULL;



    for (i = 0; i < FF_ARRAY_ELEMS(error_entries); i++) {

        if (errnum == error_entries[i].num) {

            entry = &error_entries[i];

            break;

        }

    }

    if (entry) {

        av_strlcpy(errbuf, entry->str, errbuf_size);

    } else {

#if HAVE_STRERROR_R

        ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size);

#else

        ret = -1;

#endif

        if (ret < 0)

            snprintf(errbuf, errbuf_size, "Error number %d occurred", errnum);

    }



    return ret;

}

        ret = strerror_r(AVUNERROR(errnum), errbuf, errbuf_size);
int FUNC_0(int VAR_0, char *VAR_1, size_t VAR_2)

{

    int VAR_3 = 0, VAR_4;

    struct error_entry *VAR_5 = NULL;



    for (VAR_4 = 0; VAR_4 < FF_ARRAY_ELEMS(error_entries); VAR_4++) {

        if (VAR_0 == error_entries[VAR_4].num) {

            VAR_5 = &error_entries[VAR_4];

            break;

        }

    }

    if (VAR_5) {

        av_strlcpy(VAR_1, VAR_5->str, VAR_2);

    } else {

#if HAVE_STRERROR_R

        VAR_3 = strerror_r(AVUNERROR(VAR_0), VAR_1, VAR_2);

#else

        VAR_3 = -1;

#endif

        if (VAR_3 < 0)

            snprintf(VAR_1, VAR_2, "Error number %d occurred", VAR_0);

    }



    return VAR_3;

}

int FUNC_0(int VAR_0, char *VAR_1, size_t VAR_2)
{ int VAR_3 = 0, VAR_4; struct error_entry *VAR_5 = NULL; for (VAR_4 = 0; VAR_4 < FF_ARRAY_ELEMS(error_entries); VAR_4++) { if (VAR_0 == error_entries[VAR_4].num) { VAR_5 = &error_entries[VAR_4]; break; } } if (VAR_5) { av_strlcpy(VAR_1, VAR_5->str, VAR_2); } else { #if HAVE_STRERROR_R
VAR_3 = strerror_r(AVUNERROR(VAR_0), VAR_1, VAR_2); #else
VAR_3 = -1; #endif
if (VAR_3 < 0)
snprintf(VAR_1, VAR_2, "Error number %d occurred", VAR_0); } return VAR_3; }