diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-10-03 20:04:07 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-10-12 16:51:16 +0200 |
commit | 8c5dcaad13a54d90f25e8bbb54efe2a1afd5144e (patch) | |
tree | c1fc8a83bf4633950c4169b41e6a8c24c2c30172 /libavutil/opt.c | |
parent | dca055be3ae1a79209051a3f581802e3d21b7ad5 (diff) | |
download | ffmpeg-8c5dcaad13a54d90f25e8bbb54efe2a1afd5144e.tar.gz |
AVOptions: add av_opt_next, deprecate av_next_option.
Just for naming consistency, no functional changes.
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 8af2ac223b..7667d49e3c 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -47,8 +47,15 @@ const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mas } #endif +#if FF_API_OLD_AVOPTIONS const AVOption *av_next_option(void *obj, const AVOption *last) { + return av_opt_next(obj, last); +} +#endif + +const AVOption *av_opt_next(void *obj, const AVOption *last) +{ if (last && last[1].name) return ++last; else if (last) return NULL; else return (*(AVClass**)obj)->option; |