Browse code

typo fix: inited --> initialized

Originally committed as revision 11920 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2008/02/13 18:26:10
Showing 15 changed files
... ...
@@ -53,11 +53,11 @@
53 53
  */
54 54
 void avcodec_register_all(void)
55 55
 {
56
-    static int inited;
56
+    static int initialized;
57 57
 
58
-    if (inited)
58
+    if (initialized)
59 59
         return;
60
-    inited = 1;
60
+    initialized = 1;
61 61
 
62 62
     /* video codecs */
63 63
     REGISTER_DECODER (AASC, aasc);
... ...
@@ -179,10 +179,10 @@ typedef struct {
179 179
 
180 180
 static void dca_init_vlcs(void)
181 181
 {
182
-    static int vlcs_inited = 0;
182
+    static int vlcs_initialized = 0;
183 183
     int i, j;
184 184
 
185
-    if (vlcs_inited)
185
+    if (vlcs_initialized)
186 186
         return;
187 187
 
188 188
     dca_bitalloc_index.offset = 1;
... ...
@@ -214,7 +214,7 @@ static void dca_init_vlcs(void)
214 214
                      bitalloc_bits[i][j], 1, 1,
215 215
                      bitalloc_codes[i][j], 2, 2, 1);
216 216
         }
217
-    vlcs_inited = 1;
217
+    vlcs_initialized = 1;
218 218
 }
219 219
 
220 220
 static inline void get_array(GetBitContext *gb, int *dst, int len, int bits)
... ...
@@ -1195,9 +1195,9 @@ static int dca_decode_frame(AVCodecContext * avctx,
1195 1195
 static void pre_calc_cosmod(DCAContext * s)
1196 1196
 {
1197 1197
     int i, j, k;
1198
-    static int cosmod_inited = 0;
1198
+    static int cosmod_initialized = 0;
1199 1199
 
1200
-    if(cosmod_inited) return;
1200
+    if(cosmod_initialized) return;
1201 1201
     for (j = 0, k = 0; k < 16; k++)
1202 1202
         for (i = 0; i < 16; i++)
1203 1203
             cos_mod[j++] = cos((2 * i + 1) * (2 * k + 1) * M_PI / 64);
... ...
@@ -1212,7 +1212,7 @@ static void pre_calc_cosmod(DCAContext * s)
1212 1212
     for (k = 0; k < 16; k++)
1213 1213
         cos_mod[j++] = -0.25 / (2.0 * sin((2 * k + 1) * M_PI / 128));
1214 1214
 
1215
-    cosmod_inited = 1;
1215
+    cosmod_initialized = 1;
1216 1216
 }
1217 1217
 
1218 1218
 
... ...
@@ -769,7 +769,7 @@ void ff_er_frame_end(MpegEncContext *s){
769 769
 
770 770
             if(   error2==(VP_START|DC_ERROR|AC_ERROR|MV_ERROR|AC_END|DC_END|MV_END)
771 771
                && error1!=(VP_START|DC_ERROR|AC_ERROR|MV_ERROR|AC_END|DC_END|MV_END)
772
-               && ((error1&AC_END) || (error1&DC_END) || (error1&MV_END))){ //end & uninited
772
+               && ((error1&AC_END) || (error1&DC_END) || (error1&MV_END))){ //end & uninit
773 773
                 end_ok=0;
774 774
             }
775 775
 
... ...
@@ -2350,7 +2350,7 @@ int img_convert(AVPicture *dst, int dst_pix_fmt,
2350 2350
                 const AVPicture *src, int src_pix_fmt,
2351 2351
                 int src_width, int src_height)
2352 2352
 {
2353
-    static int inited;
2353
+    static int initialized;
2354 2354
     int i, ret, dst_width, dst_height, int_pix_fmt;
2355 2355
     const PixFmtInfo *src_pix, *dst_pix;
2356 2356
     const ConvertEntry *ce;
... ...
@@ -2362,8 +2362,8 @@ int img_convert(AVPicture *dst, int dst_pix_fmt,
2362 2362
     if (src_width <= 0 || src_height <= 0)
2363 2363
         return 0;
2364 2364
 
2365
-    if (!inited) {
2366
-        inited = 1;
2365
+    if (!initialized) {
2366
+        initialized = 1;
2367 2367
         img_convert_init();
2368 2368
     }
2369 2369
 
... ...
@@ -50,7 +50,7 @@ static int mpc7_decode_init(AVCodecContext * avctx)
50 50
     MPCContext *c = avctx->priv_data;
51 51
     GetBitContext gb;
52 52
     uint8_t buf[16];
53
-    static int vlc_inited = 0;
53
+    static int vlc_initialized = 0;
54 54
 
55 55
     if(avctx->extradata_size < 16){
56 56
         av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
... ...
@@ -77,7 +77,7 @@ static int mpc7_decode_init(AVCodecContext * avctx)
77 77
             c->IS, c->MSS, c->gapless, c->lastframelen, c->maxbands);
78 78
     c->frames_to_skip = 0;
79 79
 
80
-    if(vlc_inited) return 0;
80
+    if(vlc_initialized) return 0;
81 81
     av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n");
82 82
     if(init_vlc(&scfi_vlc, MPC7_SCFI_BITS, MPC7_SCFI_SIZE,
83 83
                 &mpc7_scfi[1], 2, 1,
... ...
@@ -107,7 +107,7 @@ static int mpc7_decode_init(AVCodecContext * avctx)
107 107
             }
108 108
         }
109 109
     }
110
-    vlc_inited = 1;
110
+    vlc_initialized = 1;
111 111
     return 0;
112 112
 }
113 113
 
... ...
@@ -97,7 +97,7 @@ static int mpc8_decode_init(AVCodecContext * avctx)
97 97
     int i;
98 98
     MPCContext *c = avctx->priv_data;
99 99
     GetBitContext gb;
100
-    static int vlc_inited = 0;
100
+    static int vlc_initialized = 0;
101 101
 
102 102
     if(avctx->extradata_size < 2){
103 103
         av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size);
... ...
@@ -117,7 +117,7 @@ static int mpc8_decode_init(AVCodecContext * avctx)
117 117
     c->MSS = get_bits1(&gb);
118 118
     c->frames = 1 << (get_bits(&gb, 3) * 2);
119 119
 
120
-    if(vlc_inited) return 0;
120
+    if(vlc_initialized) return 0;
121 121
     av_log(avctx, AV_LOG_DEBUG, "Initing VLC\n");
122 122
 
123 123
     init_vlc(&band_vlc, MPC8_BANDS_BITS, MPC8_BANDS_SIZE,
... ...
@@ -176,7 +176,7 @@ static int mpc8_decode_init(AVCodecContext * avctx)
176 176
                  &mpc8_q8_bits[i],  1, 1,
177 177
                  &mpc8_q8_codes[i], 1, 1, INIT_VLC_USE_STATIC);
178 178
     }
179
-    vlc_inited = 1;
179
+    vlc_initialized = 1;
180 180
     return 0;
181 181
 }
182 182
 
... ...
@@ -2524,7 +2524,7 @@ static int decode_init_mp3on4(AVCodecContext * avctx)
2524 2524
     /* Init the first mp3 decoder in standard way, so that all tables get builded
2525 2525
      * We replace avctx->priv_data with the context of the first decoder so that
2526 2526
      * decode_init() does not have to be changed.
2527
-     * Other decoders will be inited here copying data from the first context
2527
+     * Other decoders will be initialized here copying data from the first context
2528 2528
      */
2529 2529
     // Allocate zeroed memory for the first decoder context
2530 2530
     s->mp3decctx[0] = av_mallocz(sizeof(MPADecodeContext));
... ...
@@ -87,7 +87,7 @@ static uint8_t static_rl_table_store[NB_RL_TABLES][2][2*MAX_RUN + MAX_LEVEL + 3]
87 87
 
88 88
 static void common_init(MpegEncContext * s)
89 89
 {
90
-    static int inited=0;
90
+    static int initialized=0;
91 91
 
92 92
     switch(s->msmpeg4_version){
93 93
     case 1:
... ...
@@ -127,8 +127,8 @@ static void common_init(MpegEncContext * s)
127 127
     }
128 128
     //Note the default tables are set in common_init in mpegvideo.c
129 129
 
130
-    if(!inited){
131
-        inited=1;
130
+    if(!initialized){
131
+        initialized=1;
132 132
 
133 133
         init_h263_dc_for_msmpeg4();
134 134
     }
... ...
@@ -1692,11 +1692,11 @@ static void qdm2_synthesis_filter (QDM2Context *q, int index)
1692 1692
  * @param q    context
1693 1693
  */
1694 1694
 static void qdm2_init(QDM2Context *q) {
1695
-    static int inited = 0;
1695
+    static int initialized = 0;
1696 1696
 
1697
-    if (inited != 0)
1697
+    if (initialized != 0)
1698 1698
         return;
1699
-    inited = 1;
1699
+    initialized = 1;
1700 1700
 
1701 1701
     qdm2_init_vlc();
1702 1702
     ff_mpa_synth_init(mpa_window);
... ...
@@ -1254,11 +1254,11 @@ unsigned avcodec_build( void )
1254 1254
 
1255 1255
 void avcodec_init(void)
1256 1256
 {
1257
-    static int inited = 0;
1257
+    static int initialized = 0;
1258 1258
 
1259
-    if (inited != 0)
1259
+    if (initialized != 0)
1260 1260
         return;
1261
-    inited = 1;
1261
+    initialized = 1;
1262 1262
 
1263 1263
     dsputil_static_init();
1264 1264
 }
... ...
@@ -3867,7 +3867,7 @@ static int vc1_decode_init(AVCodecContext *avctx)
3867 3867
         const uint8_t *next;
3868 3868
         int size, buf2_size;
3869 3869
         uint8_t *buf2 = NULL;
3870
-        int seq_inited = 0, ep_inited = 0;
3870
+        int seq_initialized = 0, ep_initialized = 0;
3871 3871
 
3872 3872
         if(avctx->extradata_size < 16) {
3873 3873
             av_log(avctx, AV_LOG_ERROR, "Extradata size too small: %i\n", avctx->extradata_size);
... ...
@@ -3889,19 +3889,19 @@ static int vc1_decode_init(AVCodecContext *avctx)
3889 3889
                     av_free(buf2);
3890 3890
                     return -1;
3891 3891
                 }
3892
-                seq_inited = 1;
3892
+                seq_initialized = 1;
3893 3893
                 break;
3894 3894
             case VC1_CODE_ENTRYPOINT:
3895 3895
                 if(decode_entry_point(avctx, &gb) < 0){
3896 3896
                     av_free(buf2);
3897 3897
                     return -1;
3898 3898
                 }
3899
-                ep_inited = 1;
3899
+                ep_initialized = 1;
3900 3900
                 break;
3901 3901
             }
3902 3902
         }
3903 3903
         av_free(buf2);
3904
-        if(!seq_inited || !ep_inited){
3904
+        if(!seq_initialized || !ep_initialized){
3905 3905
             av_log(avctx, AV_LOG_ERROR, "Incomplete extradata\n");
3906 3906
             return -1;
3907 3907
         }
... ...
@@ -273,7 +273,7 @@ typedef struct Vp3DecodeContext {
273 273
      * which of the fragments are coded */
274 274
     int *coded_fragment_list;
275 275
     int coded_fragment_list_index;
276
-    int pixel_addresses_inited;
276
+    int pixel_addresses_initialized;
277 277
 
278 278
     VLC dc_vlc[16];
279 279
     VLC ac_vlc_1[16];
... ...
@@ -2009,7 +2009,7 @@ static int vp3_decode_init(AVCodecContext *avctx)
2009 2009
     s->all_fragments = av_malloc(s->fragment_count * sizeof(Vp3Fragment));
2010 2010
     s->coeffs = av_malloc(s->fragment_count * sizeof(Coeff) * 65);
2011 2011
     s->coded_fragment_list = av_malloc(s->fragment_count * sizeof(int));
2012
-    s->pixel_addresses_inited = 0;
2012
+    s->pixel_addresses_initialized = 0;
2013 2013
 
2014 2014
     if (!s->theora_tables)
2015 2015
     {
... ...
@@ -2203,18 +2203,18 @@ static int vp3_decode_frame(AVCodecContext *avctx,
2203 2203
         s->current_frame= s->golden_frame;
2204 2204
 
2205 2205
         /* time to figure out pixel addresses? */
2206
-        if (!s->pixel_addresses_inited)
2206
+        if (!s->pixel_addresses_initialized)
2207 2207
         {
2208 2208
             if (!s->flipped_image)
2209 2209
                 vp3_calculate_pixel_addresses(s);
2210 2210
             else
2211 2211
                 theora_calculate_pixel_addresses(s);
2212
-            s->pixel_addresses_inited = 1;
2212
+            s->pixel_addresses_initialized = 1;
2213 2213
         }
2214 2214
     } else {
2215 2215
         /* allocate a new current frame */
2216 2216
         s->current_frame.reference = 3;
2217
-        if (!s->pixel_addresses_inited) {
2217
+        if (!s->pixel_addresses_initialized) {
2218 2218
             av_log(s->avctx, AV_LOG_ERROR, "vp3: first frame not a keyframe\n");
2219 2219
             return -1;
2220 2220
         }
... ...
@@ -30,11 +30,11 @@
30 30
 
31 31
 void avdevice_register_all(void)
32 32
 {
33
-    static int inited;
33
+    static int initialized;
34 34
 
35
-    if (inited)
35
+    if (initialized)
36 36
         return;
37
-    inited = 1;
37
+    initialized = 1;
38 38
 
39 39
     /* devices */
40 40
     REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
... ...
@@ -40,11 +40,11 @@
40 40
  */
41 41
 void av_register_all(void)
42 42
 {
43
-    static int inited;
43
+    static int initialized;
44 44
 
45
-    if (inited)
45
+    if (initialized)
46 46
         return;
47
-    inited = 1;
47
+    initialized = 1;
48 48
 
49 49
     avcodec_init();
50 50
     avcodec_register_all();
... ...
@@ -531,7 +531,7 @@ static int nut_read_header(AVFormatContext *s, AVFormatParameters *ap)
531 531
     NUTContext *nut = s->priv_data;
532 532
     ByteIOContext *bc = s->pb;
533 533
     int64_t pos;
534
-    int inited_stream_count;
534
+    int initialized_stream_count;
535 535
 
536 536
     nut->avf= s;
537 537
 
... ...
@@ -547,14 +547,14 @@ static int nut_read_header(AVFormatContext *s, AVFormatParameters *ap)
547 547
 
548 548
     /* stream headers */
549 549
     pos=0;
550
-    for(inited_stream_count=0; inited_stream_count < s->nb_streams;){
550
+    for(initialized_stream_count=0; initialized_stream_count < s->nb_streams;){
551 551
         pos= find_startcode(bc, STREAM_STARTCODE, pos)+1;
552 552
         if (pos<0+1){
553 553
             av_log(s, AV_LOG_ERROR, "Not all stream headers found.\n");
554 554
             return -1;
555 555
         }
556 556
         if(decode_stream_header(nut) >= 0)
557
-            inited_stream_count++;
557
+            initialized_stream_count++;
558 558
     }
559 559
 
560 560
     /* info headers */