From 5af7daabc471b9b523561264c95e7b1fc258d0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sat, 5 Nov 2011 14:39:24 +0100 Subject: Mark AVFilterPad[] compound literals as const. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 4.6.2 at least still seems to fail to put them in .rodata though, see also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37303 Signed-off-by: Reimar Döffinger --- libavfilter/asink_anullsink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter/asink_anullsink.c') diff --git a/libavfilter/asink_anullsink.c b/libavfilter/asink_anullsink.c index 5a89c2792e..9eaeead3be 100644 --- a/libavfilter/asink_anullsink.c +++ b/libavfilter/asink_anullsink.c @@ -26,7 +26,7 @@ AVFilter avfilter_asink_anullsink = { .priv_size = 0, - .inputs = (AVFilterPad[]) { + .inputs = (const AVFilterPad[]) { { .name = "default", .type = AVMEDIA_TYPE_AUDIO, @@ -34,5 +34,5 @@ AVFilter avfilter_asink_anullsink = { }, { .name = NULL}, }, - .outputs = (AVFilterPad[]) {{ .name = NULL }}, + .outputs = (const AVFilterPad[]) {{ .name = NULL }}, }; -- cgit v1.2.3