From 2d9e2c646439514e929f39e2f5d49a26e68293d4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 20 Jan 2012 20:27:09 +0100 Subject: [PATCH] =?UTF-8?q?opt:=20Fix=20"libavutil/opt.c:811:20:=20warning?= =?UTF-8?q?:=20initialization=20discards=20=E2=80=98const=E2=80=99=20quali?= =?UTF-8?q?fier=20from=20pointer=20target=20type=20[enabled=20by=20default?= =?UTF-8?q?]"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Niedermayer --- libavutil/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index f0b5deb4f0..2f8be3bfba 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;