diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-04-21 05:42:22 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-04-21 05:42:22 +0000 |
commit | f7cf12b209c3a1ac2d6b797c585b593a5e9a461d (patch) | |
tree | 797551cdbbda75dcb868b1eb3e5ad997ae4c58f7 | |
parent | 346802aa99ee0fc3cec242049bf5c6a0b46d682f (diff) | |
download | ffmpeg-f7cf12b209c3a1ac2d6b797c585b593a5e9a461d.tar.gz |
Set flag after VC-1 VLCs are initialized to avoid race condition
Originally committed as revision 18639 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/vc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index 3b0350f324..e70a57517e 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -62,7 +62,6 @@ static int vc1_init_common(VC1Context *v) /* VLC tables */ if(!done) { - done = 1; init_vlc(&ff_vc1_bfraction_vlc, VC1_BFRACTION_VLC_BITS, 23, ff_vc1_bfraction_bits, 1, 1, ff_vc1_bfraction_codes, 1, 1, INIT_VLC_USE_STATIC); @@ -106,6 +105,7 @@ static int vc1_init_common(VC1Context *v) init_vlc(&ff_msmp4_mb_i_vlc, MB_INTRA_VLC_BITS, 64, &ff_msmp4_mb_i_table[0][1], 4, 2, &ff_msmp4_mb_i_table[0][0], 4, 2, INIT_VLC_USE_STATIC); + done = 1; } /* Other defaults */ |