const AVOption *av_opt_find(void *obj, const char *name, const char *unit,

                            int opt_flags, int search_flags)

{

    AVClass *c = *(AVClass**)obj;

    const AVOption *o = NULL;



    if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&

        (o = c->opt_find(obj, name, unit, opt_flags, search_flags)))

        return o;



    while (o = av_next_option(obj, o)) {

        if (!strcmp(o->name, name) && (!unit || (o->unit && !strcmp(o->unit, unit))) &&

            (o->flags & opt_flags) == opt_flags)

            return o;

    }

    return NULL;

}

const AVOption *av_opt_find(void *obj, const char *name, const char *unit,

                            int opt_flags, int search_flags)

{

    AVClass *c = *(AVClass**)obj;

    const AVOption *o = NULL;



    if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&

        (o = c->opt_find(obj, name, unit, opt_flags, search_flags)))

        return o;



    while (o = av_next_option(obj, o)) {

        if (!strcmp(o->name, name) && (!unit || (o->unit && !strcmp(o->unit, unit))) &&

            (o->flags & opt_flags) == opt_flags)

            return o;

    }

    return NULL;

}

const AVOption *FUNC_0(void *obj, const char *name, const char *unit,

                            int opt_flags, int search_flags)

{

    AVClass *c = *(AVClass**)obj;

    const AVOption *VAR_0 = NULL;



    if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&

        (VAR_0 = c->opt_find(obj, name, unit, opt_flags, search_flags)))

        return VAR_0;



    while (VAR_0 = av_next_option(obj, VAR_0)) {

        if (!strcmp(VAR_0->name, name) && (!unit || (VAR_0->unit && !strcmp(VAR_0->unit, unit))) &&

            (VAR_0->flags & opt_flags) == opt_flags)

            return VAR_0;

    }

    return NULL;

}

const AVOption *FUNC_0(void *obj, const char *name, const char *unit,
int opt_flags, int search_flags)
{ AVClass *c = *(AVClass**)obj; const AVOption *VAR_0 = NULL; if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&
(VAR_0 = c->opt_find(obj, name, unit, opt_flags, search_flags)))
return VAR_0; while (VAR_0 = av_next_option(obj, VAR_0)) { if (!strcmp(VAR_0->name, name) && (!unit || (VAR_0->unit && !strcmp(VAR_0->unit, unit))) &&
(VAR_0->flags & opt_flags) == opt_flags)
return VAR_0; } return NULL; }