const AVOption *av_next_option(void *obj, const AVOption *last)
{
    if (last && last[1].name) return ++last;
    else if (last || !(*(AVClass**)obj)->option->name) return NULL;
    else                      return (*(AVClass**)obj)->option;
}