From aea8923f26e3adca79b7d8790b88ff3f42889f90 Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Wed, 26 Jun 2002 15:52:12 +0000 Subject: Sun Forte cc refuses to initialize "const int" array with non-const expressions. Just remove "const" for non-gcc compilers. CVS patchset: 2166 CVS date: 2002/06/26 15:52:12 --- src/libffmpeg/libavcodec/h263.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/libffmpeg/libavcodec/h263.c b/src/libffmpeg/libavcodec/h263.c index ae1eea7d7..0b3a5347c 100644 --- a/src/libffmpeg/libavcodec/h263.c +++ b/src/libffmpeg/libavcodec/h263.c @@ -3182,7 +3182,12 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s) int a= 2<sprite_warping_accuracy; int rho= 3-s->sprite_warping_accuracy; int r=16/a; +#ifdef __GNUC__ const int vop_ref[4][2]= {{0,0}, {s->width,0}, {0, s->height}, {s->width, s->height}}; // only true for rectangle shapes +#else + int vop_ref[4][2]= {{0,0}, {s->width,0}, {0, s->height}, {s->width, s->height}}; // only true for rectangle shapes +#endif + int d[4][2]={{0,0}, {0,0}, {0,0}, {0,0}}; int sprite_ref[4][2]; int virtual_ref[2][2]; -- cgit v1.2.3