Mercurial > libavcodec.hg
comparison vc1.c @ 9522:bf81b6f776ea libavcodec
Set flag after VC-1 VLCs are initialized to avoid race condition
author | kostya |
---|---|
date | Tue, 21 Apr 2009 05:42:22 +0000 |
parents | d8e5002210cb |
children | 654f5260a87d |
comparison
equal
deleted
inserted
replaced
9521:d8e5002210cb | 9522:bf81b6f776ea |
---|---|
60 v->hrd_rate = v->hrd_buffer = NULL; | 60 v->hrd_rate = v->hrd_buffer = NULL; |
61 | 61 |
62 /* VLC tables */ | 62 /* VLC tables */ |
63 if(!done) | 63 if(!done) |
64 { | 64 { |
65 done = 1; | |
66 init_vlc(&ff_vc1_bfraction_vlc, VC1_BFRACTION_VLC_BITS, 23, | 65 init_vlc(&ff_vc1_bfraction_vlc, VC1_BFRACTION_VLC_BITS, 23, |
67 ff_vc1_bfraction_bits, 1, 1, | 66 ff_vc1_bfraction_bits, 1, 1, |
68 ff_vc1_bfraction_codes, 1, 1, INIT_VLC_USE_STATIC); | 67 ff_vc1_bfraction_codes, 1, 1, INIT_VLC_USE_STATIC); |
69 init_vlc(&ff_vc1_norm2_vlc, VC1_NORM2_VLC_BITS, 4, | 68 init_vlc(&ff_vc1_norm2_vlc, VC1_NORM2_VLC_BITS, 4, |
70 ff_vc1_norm2_bits, 1, 1, | 69 ff_vc1_norm2_bits, 1, 1, |
104 &vc1_ac_tables[i][0][1], 8, 4, | 103 &vc1_ac_tables[i][0][1], 8, 4, |
105 &vc1_ac_tables[i][0][0], 8, 4, INIT_VLC_USE_STATIC); | 104 &vc1_ac_tables[i][0][0], 8, 4, INIT_VLC_USE_STATIC); |
106 init_vlc(&ff_msmp4_mb_i_vlc, MB_INTRA_VLC_BITS, 64, | 105 init_vlc(&ff_msmp4_mb_i_vlc, MB_INTRA_VLC_BITS, 64, |
107 &ff_msmp4_mb_i_table[0][1], 4, 2, | 106 &ff_msmp4_mb_i_table[0][1], 4, 2, |
108 &ff_msmp4_mb_i_table[0][0], 4, 2, INIT_VLC_USE_STATIC); | 107 &ff_msmp4_mb_i_table[0][0], 4, 2, INIT_VLC_USE_STATIC); |
108 done = 1; | |
109 } | 109 } |
110 | 110 |
111 /* Other defaults */ | 111 /* Other defaults */ |
112 v->pq = -1; | 112 v->pq = -1; |
113 v->mvrange = 0; /* 7.1.1.18, p80 */ | 113 v->mvrange = 0; /* 7.1.1.18, p80 */ |