提交 f7cf12b2 编写于 作者: K Kostya Shishkov

Set flag after VC-1 VLCs are initialized to avoid race condition

Originally committed as revision 18639 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 346802aa
...@@ -62,7 +62,6 @@ static int vc1_init_common(VC1Context *v) ...@@ -62,7 +62,6 @@ static int vc1_init_common(VC1Context *v)
/* VLC tables */ /* VLC tables */
if(!done) if(!done)
{ {
done = 1;
init_vlc(&ff_vc1_bfraction_vlc, VC1_BFRACTION_VLC_BITS, 23, init_vlc(&ff_vc1_bfraction_vlc, VC1_BFRACTION_VLC_BITS, 23,
ff_vc1_bfraction_bits, 1, 1, ff_vc1_bfraction_bits, 1, 1,
ff_vc1_bfraction_codes, 1, 1, INIT_VLC_USE_STATIC); ff_vc1_bfraction_codes, 1, 1, INIT_VLC_USE_STATIC);
...@@ -106,6 +105,7 @@ static int vc1_init_common(VC1Context *v) ...@@ -106,6 +105,7 @@ static int vc1_init_common(VC1Context *v)
init_vlc(&ff_msmp4_mb_i_vlc, MB_INTRA_VLC_BITS, 64, 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][1], 4, 2,
&ff_msmp4_mb_i_table[0][0], 4, 2, INIT_VLC_USE_STATIC); &ff_msmp4_mb_i_table[0][0], 4, 2, INIT_VLC_USE_STATIC);
done = 1;
} }
/* Other defaults */ /* Other defaults */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册