Mercurial > libavcodec.hg
diff opt.c @ 2865:3b999ce45b37 libavcodec
AVOption enumeration support and some flags to classify AVOptions
author | michael |
---|---|
date | Tue, 06 Sep 2005 21:32:18 +0000 |
parents | f4aea2c316cc |
children | 55809f38eb63 |
line wrap: on
line diff
--- a/opt.c Tue Sep 06 21:25:35 2005 +0000 +++ b/opt.c Tue Sep 06 21:32:18 2005 +0000 @@ -46,6 +46,12 @@ return NULL; } +AVOption *av_next_option(void *obj, AVOption *last){ + if(last && last[1].name) return ++last; + else if(last) return NULL; + else return (*(AVClass**)obj)->option; +} + static int av_set_number(void *obj, const char *name, double num, int den, int64_t intnum){ AVOption *o= find_opt(obj, name); void *dst;