Commit a2de7b1b authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/bitstream: document the double volatile

Suggested-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 36393434
...@@ -163,7 +163,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, ...@@ -163,7 +163,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
int table_size, table_index, index, code_prefix, symbol, subtable_bits; int table_size, table_index, index, code_prefix, symbol, subtable_bits;
int i, j, k, n, nb, inc; int i, j, k, n, nb, inc;
uint32_t code; uint32_t code;
volatile VLC_TYPE (* volatile table)[2]; volatile VLC_TYPE (* volatile table)[2]; // the double volatile is needed to prevent a internal compiler error in gcc 4.2
table_size = 1 << table_nb_bits; table_size = 1 << table_nb_bits;
if (table_nb_bits > 30) if (table_nb_bits > 30)
......
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