[FFmpeg-cvslog] avcodec/get_bits: init_state is used for thread sync, make it volatile

Michael Niedermayer git at videolan.org
Tue Jul 30 20:38:50 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 30 20:26:38 2013 +0200| [43411f416f6db7a16919ffa49fbd18ceb6c07dea] | committer: Michael Niedermayer

avcodec/get_bits: init_state is used for thread sync, make it volatile

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/get_bits.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 3967b49..af07d6f 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -64,7 +64,7 @@ typedef struct VLC {
     int bits;
     VLC_TYPE (*table)[2]; ///< code, bits
     int table_size, table_allocated;
-    void *init_state;
+    volatile void *init_state;
 } VLC;
 
 typedef struct RL_VLC_ELEM {



More information about the ffmpeg-cvslog mailing list