Commit 031cb39a authored by Gildas Bazin's avatar Gildas Bazin

* modules/video_chroma/i420_rgb.c: work around a gcc-3.3.4 optimization bug.

parent 3a4997f5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* i420_rgb.c : YUV to bitmap RGB conversion module for vlc * i420_rgb.c : YUV to bitmap RGB conversion module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001, 2004 VideoLAN * Copyright (C) 2000, 2001, 2004 VideoLAN
* $Id: i420_rgb.c,v 1.7 2004/01/31 05:53:35 rocky Exp $ * $Id$
* *
* Author: Sam Hocevar <sam@zoy.org> * Author: Sam Hocevar <sam@zoy.org>
* *
...@@ -266,7 +266,9 @@ static void SetGammaTable( int *pi_table, double f_gamma ) ...@@ -266,7 +266,9 @@ static void SetGammaTable( int *pi_table, double f_gamma )
static void SetYUV( vout_thread_t *p_vout ) static void SetYUV( vout_thread_t *p_vout )
{ {
int pi_gamma[256]; /* gamma table */ int pi_gamma[256]; /* gamma table */
int i_index; /* index in tables */ volatile int i_index; /* index in tables */
/* We use volatile here to work around a strange gcc-3.3.4
* optimization bug */
/* Build gamma table */ /* Build gamma table */
SetGammaTable( pi_gamma, p_vout->f_gamma ); SetGammaTable( pi_gamma, p_vout->f_gamma );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment