From fe1de12fafcefb9192eb135a472b2d859fe58082 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Wed, 17 Apr 2013 00:37:05 +0200 Subject: Remove two anonymous arrays. Fixes compilation of pngenc.c and flvdec.c with PGC 13.4-0. --- libavcodec/pngenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/pngenc.c') diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index a401c78f77..5ba5983776 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -57,8 +57,9 @@ static void png_get_interlaced_row(uint8_t *dst, int row_size, int x, mask, dst_x, j, b, bpp; uint8_t *d; const uint8_t *s; + static const int masks[] = {0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff}; - mask = (int[]){0x80, 0x08, 0x88, 0x22, 0xaa, 0x55, 0xff}[pass]; + mask = masks[pass]; switch(bits_per_pixel) { case 1: memset(dst, 0, row_size); -- cgit v1.2.3