This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 1c36aa8e335ef3f821adcef20f73299955ac8f5a Author: Andreas Rheinhardt <[email protected]> AuthorDate: Mon Mar 9 07:08:47 2026 +0100 Commit: Andreas Rheinhardt <[email protected]> CommitDate: Tue Jun 23 19:15:57 2026 +0200 avutil/opt: Remove FF_API_OPT_PTR Deprecated on 2024-10-16. Signed-off-by: Andreas Rheinhardt <[email protected]> --- libavutil/opt.c | 13 ------------- libavutil/opt.h | 15 --------------- libavutil/version.h | 1 - 3 files changed, 29 deletions(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index fca8772c18..dd7d7a597c 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -39,7 +39,6 @@ #include "opt.h" #include "samplefmt.h" #include "bprint.h" -#include "version.h" #include <float.h> @@ -2048,18 +2047,6 @@ const AVClass *av_opt_child_class_iterate(const AVClass *parent, void **iter) return NULL; } -#if FF_API_OPT_PTR -void *av_opt_ptr(const AVClass *class, void *obj, const char *name) -{ - const AVOption *opt= av_opt_find2(&class, name, NULL, 0, AV_OPT_SEARCH_FAKE_OBJ, NULL); - - // no direct access to array-type options - if (!opt || (opt->type & AV_OPT_TYPE_FLAG_ARRAY)) - return NULL; - return (uint8_t*)obj + opt->offset; -} -#endif - static int opt_copy_elem(void *logctx, enum AVOptionType type, void *dst, const void *src) { diff --git a/libavutil/opt.h b/libavutil/opt.h index 82420bba47..2a50f52fc3 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -1052,21 +1052,6 @@ int av_opt_eval_q (void *obj, const AVOption *o, const char *val, AVRational * @} */ -#if FF_API_OPT_PTR -/** - * Gets a pointer to the requested field in a struct. - * This function allows accessing a struct even when its fields are moved or - * renamed since the application making the access has been compiled, - * - * @returns a pointer to the field, it can be cast to the correct type and read - * or written to. - * - * @deprecated direct access to AVOption-exported fields is not supported - */ -attribute_deprecated -void *av_opt_ptr(const AVClass *avclass, void *obj, const char *name); -#endif - /** * Check if given option is set to its default value. * diff --git a/libavutil/version.h b/libavutil/version.h index becca0e0f1..b60e4310ec 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -105,7 +105,6 @@ * @{ */ -#define FF_API_OPT_PTR (LIBAVUTIL_VERSION_MAJOR < 61) #define FF_API_CPU_FLAG_FORCE (LIBAVUTIL_VERSION_MAJOR < 61) #define FF_API_DOVI_L11_INVALID_PROPS (LIBAVUTIL_VERSION_MAJOR < 61) #define FF_API_ASSERT_FPU (LIBAVUTIL_VERSION_MAJOR < 61) _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
