[FFmpeg-cvslog] avutil: remove obsolete FF_API_FIND_OPT cruft
James Almer
git at videolan.org
Sun Oct 5 22:19:07 CEST 2014
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Sep 14 21:15:33 2014 -0300| [71718de814471b7ca871f600cd9368deb56b3972] | committer: James Almer
avutil: remove obsolete FF_API_FIND_OPT cruft
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=71718de814471b7ca871f600cd9368deb56b3972
---
libavutil/opt.c | 14 --------------
libavutil/opt.h | 19 -------------------
libavutil/version.h | 3 ---
3 files changed, 36 deletions(-)
diff --git a/libavutil/opt.c b/libavutil/opt.c
index ee72a96..6aabfe3 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -40,20 +40,6 @@
#include <float.h>
-#if FF_API_FIND_OPT
-//FIXME order them and do a bin search
-const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mask, int flags)
-{
- const AVOption *o = NULL;
-
- while ((o = av_next_option(v, o))) {
- if (!strcmp(o->name, name) && (!unit || (o->unit && !strcmp(o->unit, unit))) && (o->flags & mask) == flags)
- return o;
- }
- return NULL;
-}
-#endif
-
#if FF_API_OLD_AVOPTIONS
const AVOption *av_next_option(void *obj, const AVOption *last)
{
diff --git a/libavutil/opt.h b/libavutil/opt.h
index 4905ee3..1b72a10 100644
--- a/libavutil/opt.h
+++ b/libavutil/opt.h
@@ -378,25 +378,6 @@ typedef struct AVOptionRanges {
} AVOptionRanges;
-#if FF_API_FIND_OPT
-/**
- * Look for an option in obj. Look only for the options which
- * have the flags set as specified in mask and flags (that is,
- * for which it is the case that (opt->flags & mask) == flags).
- *
- * @param[in] obj a pointer to a struct whose first element is a
- * pointer to an AVClass
- * @param[in] name the name of the option to look for
- * @param[in] unit the unit of the option to look for, or any if NULL
- * @return a pointer to the option found, or NULL if no option
- * has been found
- *
- * @deprecated use av_opt_find.
- */
-attribute_deprecated
-const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags);
-#endif
-
#if FF_API_OLD_AVOPTIONS
/**
* Set the field of obj with the given name to value.
diff --git a/libavutil/version.h b/libavutil/version.h
index f93798d..e38da7c 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -80,9 +80,6 @@
* @{
*/
-#ifndef FF_API_FIND_OPT
-#define FF_API_FIND_OPT (LIBAVUTIL_VERSION_MAJOR < 54)
-#endif
#ifndef FF_API_OLD_AVOPTIONS
#define FF_API_OLD_AVOPTIONS (LIBAVUTIL_VERSION_MAJOR < 55)
#endif
More information about the ffmpeg-cvslog
mailing list