[FFmpeg-cvslog] avcodec/bitstream: document the double volatile

Michael Niedermayer git at videolan.org
Sat Jun 21 17:05:45 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jun 21 14:55:32 2014 +0200| [a2de7b1bd5045bc244ddebbf81f353f03dff2a9b] | committer: Michael Niedermayer

avcodec/bitstream: document the double volatile

Suggested-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a2de7b1bd5045bc244ddebbf81f353f03dff2a9b
---

 libavcodec/bitstream.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c
index eb36c6f..aae2dcd 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)



More information about the ffmpeg-cvslog mailing list