Commit 2d9e2c64 authored by Michael Niedermayer's avatar Michael Niedermayer

opt: Fix "libavutil/opt.c:811:20: warning: initialization discards ‘const’...

opt: Fix "libavutil/opt.c:811:20: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]"
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 23934e5f
...@@ -808,7 +808,7 @@ const AVClass *av_opt_child_class_next(const AVClass *parent, const AVClass *pre ...@@ -808,7 +808,7 @@ const AVClass *av_opt_child_class_next(const AVClass *parent, const AVClass *pre
void *av_opt_ptr(const AVClass *class, void *obj, const char *name) void *av_opt_ptr(const AVClass *class, void *obj, const char *name)
{ {
AVOption *opt= av_opt_find2(&class, name, NULL, 0, AV_OPT_SEARCH_FAKE_OBJ, NULL); const AVOption *opt= av_opt_find2(&class, name, NULL, 0, AV_OPT_SEARCH_FAKE_OBJ, NULL);
if(!opt) if(!opt)
return NULL; return NULL;
return (uint8_t*)obj + opt->offset; return (uint8_t*)obj + opt->offset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment