aboutsummaryrefslogtreecommitdiffstats
path: root/postproc/swscale.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2001-11-06 19:26:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2001-11-06 19:26:22 +0000
commit3fe8e8f0689e3196101cd6c7bc5be6c423b41a49 (patch)
tree21ac39a4f0e2dc64631dd4fec046af1dccb69d4c /postproc/swscale.c
parentda3b92c877dd48fc46f0f2a0a23624bffd82fe34 (diff)
downloadffmpeg-3fe8e8f0689e3196101cd6c7bc5be6c423b41a49.tar.gz
gcc does optimize writes to non volatile variables away if it didnt know that they were read in between
Originally committed as revision 2751 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc/swscale.c')
-rw-r--r--postproc/swscale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index 8ea2396c70..f40eccf207 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -71,10 +71,10 @@ static uint64_t __attribute__((aligned(8))) bm00001111=0x00000000FFFFFFFFLL;
static uint64_t __attribute__((aligned(8))) bm00000111=0x0000000000FFFFFFLL;
static uint64_t __attribute__((aligned(8))) bm11111000=0xFFFFFFFFFF000000LL;
-static uint64_t __attribute__((aligned(8))) b5Dither;
-static uint64_t __attribute__((aligned(8))) g5Dither;
-static uint64_t __attribute__((aligned(8))) g6Dither;
-static uint64_t __attribute__((aligned(8))) r5Dither;
+static volatile uint64_t __attribute__((aligned(8))) b5Dither;
+static volatile uint64_t __attribute__((aligned(8))) g5Dither;
+static volatile uint64_t __attribute__((aligned(8))) g6Dither;
+static volatile uint64_t __attribute__((aligned(8))) r5Dither;
static uint64_t __attribute__((aligned(8))) dither4[2]={
0x0103010301030103LL,