diff options
author | Juergen Keil <jkeil@users.sourceforge.net> | 2002-06-26 15:52:12 +0000 |
---|---|---|
committer | Juergen Keil <jkeil@users.sourceforge.net> | 2002-06-26 15:52:12 +0000 |
commit | aea8923f26e3adca79b7d8790b88ff3f42889f90 (patch) | |
tree | 7acb25c4f6d888601534b8325436fef7cfde46fa | |
parent | 41e86f6fc9ac88cc8280940a1a6fcb0af05a2545 (diff) | |
download | xine-lib-aea8923f26e3adca79b7d8790b88ff3f42889f90.tar.gz xine-lib-aea8923f26e3adca79b7d8790b88ff3f42889f90.tar.bz2 |
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
-rw-r--r-- | src/libffmpeg/libavcodec/h263.c | 5 |
1 files changed, 5 insertions, 0 deletions
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<<s->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]; |