X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavutil%2Fopt.c;h=2f8be3bfba784a2be2dc5d37107a47141b7b278b;hb=b5a69e79c579e6e15e2019ffd34ef0e09aeab586;hp=f0b5deb4f090527fe9a1aa559a3bccc3d944655a;hpb=15c481614bb410cfa147f8051024d42b01eadff8;p=ffmpeg diff --git a/libavutil/opt.c b/libavutil/opt.c index f0b5deb4f09..2f8be3bfba7 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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) { - 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) return NULL; return (uint8_t*)obj + opt->offset;