summaryrefslogtreecommitdiff
path: root/libavcodec/bitstream.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-21 14:55:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-21 14:55:32 +0200
commita2de7b1bd5045bc244ddebbf81f353f03dff2a9b (patch)
treeb1248db4e9890315eed8378dd6d184168a03f782 /libavcodec/bitstream.c
parent36393434782b013ebacc8c30dd3c93531e2b197d (diff)
downloadffmpeg-a2de7b1bd5045bc244ddebbf81f353f03dff2a9b.tar.gz
avcodec/bitstream: document the double volatile
Suggested-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r--libavcodec/bitstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index eb36c6f90b..aae2dcdce2 100644
--- a/libavcodec/bitstream.c
+++ b/libavcodec/bitstream.c
@@ -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 i, j, k, n, nb, inc;
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;
if (table_nb_bits > 30)