Browse code

Even More spelling errors. patch by (Kevin Baragona <kevinmb500 gawab com)

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

Kevin Baragona authored on 2005/05/05 23:34:47
Showing 1 changed files
... ...
@@ -110,7 +110,7 @@ max run: 29/41
110 110
 */
111 111
 #endif
112 112
 
113
-#if 0 //3IV1 is quite rare and tis slows things down a tiny bit
113
+#if 0 //3IV1 is quite rare and it slows things down a tiny bit
114 114
 #define IS_3IV1 s->avctx->codec_tag == ff_get_fourcc("3IV1")
115 115
 #else 
116 116
 #define IS_3IV1 0
... ...
@@ -523,8 +523,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){
523 523
     
524 524
     if(s->pict_type== B_TYPE){
525 525
         int odd=0;
526
-        /* ok, come on, this isnt funny anymore, theres more code for handling this mpeg4 mess than
527
-           for the actual adaptive quantization */
526
+        /* ok, come on, this isn't funny anymore, there's more code for handling this mpeg4 mess than for the actual adaptive quantization */
528 527
         
529 528
         for(i=0; i<s->mb_num; i++){
530 529
             int mb_xy= s->mb_index2xy[i];
... ...
@@ -615,7 +614,7 @@ int ff_mpeg4_set_direct_mv(MpegEncContext *s, int mx, int my){
615 615
 
616 616
 void ff_h263_update_motion_val(MpegEncContext * s){
617 617
     const int mb_xy = s->mb_y * s->mb_stride + s->mb_x;
618
-               //FIXME a lot of thet is only needed for !low_delay
618
+               //FIXME a lot of that is only needed for !low_delay
619 619
     const int wrap = s->b8_stride;
620 620
     const int xy = s->block_index[0];
621 621
     
... ...
@@ -862,7 +861,7 @@ void mpeg4_encode_mb(MpegEncContext * s,
862 862
                 s->mv[0][0][1]= 
863 863
                 s->mv[1][0][0]= 
864 864
                 s->mv[1][0][1]= 0;
865
-                s->mv_dir= MV_DIR_FORWARD; //doesnt matter
865
+                s->mv_dir= MV_DIR_FORWARD; //doesn't matter
866 866
                 s->qscale -= s->dquant;
867 867
 //                s->mb_skipped=1;
868 868
 
... ...
@@ -887,7 +886,7 @@ void mpeg4_encode_mb(MpegEncContext * s,
887 887
             
888 888
             put_bits(&s->pb, 1, 0);	/* mb coded modb1=0 */
889 889
             put_bits(&s->pb, 1, cbp ? 0 : 1); /* modb2 */ //FIXME merge
890
-            put_bits(&s->pb, mb_type+1, 1); // this table is so simple that we dont need it :)
890
+            put_bits(&s->pb, mb_type+1, 1); // this table is so simple that we don't need it :)
891 891
             if(cbp) put_bits(&s->pb, 6, cbp);
892 892
             
893 893
             if(cbp && mb_type){
... ...
@@ -901,7 +900,7 @@ void mpeg4_encode_mb(MpegEncContext * s,
901 901
             if(!s->progressive_sequence){
902 902
                 if(cbp)
903 903
                     put_bits(&s->pb, 1, s->interlaced_dct);
904
-                if(mb_type) // not diect mode
904
+                if(mb_type) // not direct mode
905 905
                     put_bits(&s->pb, 1, s->mv_type == MV_TYPE_FIELD);
906 906
             }
907 907
 
... ...
@@ -976,7 +975,7 @@ void mpeg4_encode_mb(MpegEncContext * s,
976 976
         
977 977
             if ((cbp | motion_x | motion_y | s->dquant) == 0 && s->mv_type==MV_TYPE_16X16) {
978 978
                 /* check if the B frames can skip it too, as we must skip it if we skip here 
979
-                   why didnt they just compress the skip-mb bits instead of reusing them ?! */
979
+                   why didn't they just compress the skip-mb bits instead of reusing them ?! */
980 980
                 if(s->max_b_frames>0){
981 981
                     int i;
982 982
                     int x,y, offset;
... ...
@@ -1623,7 +1622,7 @@ int16_t *h263_pred_motion(MpegEncContext * s, int block, int dir,
1623 1623
     A = mot_val[ - 1];
1624 1624
     /* special case for first (slice) line */
1625 1625
     if (s->first_slice_line && block<3) {
1626
-        // we cant just change some MVs to simulate that as we need them for the B frames (and ME)
1626
+        // we can't just change some MVs to simulate that as we need them for the B frames (and ME)
1627 1627
         // and if we ever support non rectangular objects than we need to do a few ifs here anyway :(
1628 1628
         if(block==0){ //most common case
1629 1629
             if(s->mb_x  == s->resync_mb_x){ //rare
... ...
@@ -2054,7 +2053,7 @@ void h263_encode_init(MpegEncContext *s)
2054 2054
         s->y_dc_scale_table=
2055 2055
         s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
2056 2056
         break;
2057
-    default: //nothing needed default table allready set in mpegvideo.c
2057
+    default: //nothing needed - default table already set in mpegvideo.c
2058 2058
         s->min_qcoeff= -127;
2059 2059
         s->max_qcoeff=  127;
2060 2060
         s->y_dc_scale_table=
... ...
@@ -2509,7 +2508,7 @@ static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *di
2509 2509
     b = dc_val[ - 1 - wrap];
2510 2510
     c = dc_val[ - wrap];
2511 2511
 
2512
-    /* outside slice handling (we cant do that by memset as we need the dc for error resilience) */
2512
+    /* outside slice handling (we can't do that by memset as we need the dc for error resilience) */
2513 2513
     if(s->first_slice_line && n!=3){
2514 2514
         if(n!=2) b=c= 1024;
2515 2515
         if(n!=1 && s->mb_x == s->resync_mb_x) b=a= 1024;
... ...
@@ -3242,7 +3241,7 @@ static int mpeg4_decode_video_packet_header(MpegEncContext *s)
3242 3242
 
3243 3243
         if(s->shape != BIN_ONLY_SHAPE){
3244 3244
             skip_bits(&s->gb, 3); /* intra dc vlc threshold */
3245
-//FIXME dont just ignore everything
3245
+//FIXME don't just ignore everything
3246 3246
             if(s->pict_type == S_TYPE && s->vol_sprite_usage==GMC_SPRITE){
3247 3247
                 mpeg4_decode_sprite_trajectory(s, &s->gb);
3248 3248
                 av_log(s->avctx, AV_LOG_ERROR, "untested\n");
... ...
@@ -3293,7 +3292,7 @@ void ff_mpeg4_clean_buffers(MpegEncContext *s)
3293 3293
     memset(s->ac_val[2] + c_xy, 0, (c_wrap  +1)*16*sizeof(int16_t));
3294 3294
 
3295 3295
     /* clean MV */
3296
-    // we cant clear the MVs as they might be needed by a b frame
3296
+    // we can't clear the MVs as they might be needed by a b frame
3297 3297
 //    memset(s->motion_val + l_xy, 0, (l_wrap*2+1)*2*sizeof(int16_t));
3298 3298
 //    memset(s->motion_val, 0, 2*sizeof(int16_t)*(2 + s->mb_width*2)*(2 + s->mb_height*2));
3299 3299
     s->last_mv[0][0][0]=
... ...
@@ -3322,7 +3321,7 @@ int ff_h263_resync(MpegEncContext *s){
3322 3322
         if(ret>=0)
3323 3323
             return 0;
3324 3324
     }
3325
-    //ok, its not where its supposed to be ...
3325
+    //ok, it's not where its supposed to be ...
3326 3326
     s->gb= s->last_resync_gb;
3327 3327
     align_get_bits(&s->gb);
3328 3328
     left= s->gb.size_in_bits - get_bits_count(&s->gb);
... ...
@@ -4651,7 +4650,7 @@ retry:
4651 4651
         i += run;
4652 4652
         if (i >= 64){
4653 4653
             if(s->alt_inter_vlc && rl == &rl_inter && !s->mb_intra){
4654
-                //looks like a hack but no, its the way its supposed to work ...
4654
+                //looks like a hack but no, it's the way its supposed to work ...
4655 4655
                 rl = &rl_intra_aic;
4656 4656
                 i = 0;
4657 4657
                 s->gb= gb;
... ...
@@ -5298,7 +5297,7 @@ static void mpeg4_decode_sprite_trajectory(MpegEncContext * s, GetBitContext *gb
5298 5298
     w2= 1<<alpha;
5299 5299
     h2= 1<<beta;
5300 5300
 
5301
-// Note, the 4th point isnt used for GMC
5301
+// Note, the 4th point isn't used for GMC
5302 5302
     if(s->divx_version==500 && s->divx_build==413){
5303 5303
         sprite_ref[0][0]= a*vop_ref[0][0] + d[0][0];
5304 5304
         sprite_ref[0][1]= a*vop_ref[0][1] + d[0][1];
... ...
@@ -5523,7 +5522,7 @@ static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){
5523 5523
             skip_bits1(gb);	/* marker */               
5524 5524
         }
5525 5525
     }else{
5526
-        // set low delay flag only once so the smart? low delay detection wont be overriden
5526
+        // set low delay flag only once the smartest? low delay detection won't be overriden
5527 5527
         if(s->picture_number==0)
5528 5528
             s->low_delay=0;
5529 5529
     }
... ...
@@ -5963,20 +5962,20 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
5963 5963
              if(s->enhancement_type){
5964 5964
                  int load_backward_shape= get_bits1(gb);
5965 5965
                  if(load_backward_shape){
5966
-                     av_log(s->avctx, AV_LOG_ERROR, "load backward shape isnt supported\n");
5966
+                     av_log(s->avctx, AV_LOG_ERROR, "load backward shape isn't supported\n");
5967 5967
                  }
5968 5968
              }
5969 5969
              skip_bits(gb, 2); //ref_select_code
5970 5970
          }
5971 5971
      }
5972
-     /* detect buggy encoders which dont set the low_delay flag (divx4/xvid/opendivx)*/
5973
-     // note we cannot detect divx5 without b-frames easyly (allthough its buggy too)
5972
+     /* detect buggy encoders which don't set the low_delay flag (divx4/xvid/opendivx)*/
5973
+     // note we cannot detect divx5 without b-frames easily (although it's buggy too)
5974 5974
      if(s->vo_type==0 && s->vol_control_parameters==0 && s->divx_version==0 && s->picture_number==0){
5975 5975
          av_log(s->avctx, AV_LOG_ERROR, "looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag\n");
5976 5976
          s->low_delay=1;
5977 5977
      }
5978 5978
 
5979
-     s->picture_number++; // better than pic number==0 allways ;)
5979
+     s->picture_number++; // better than pic number==0 always ;)
5980 5980
 
5981 5981
      s->y_dc_scale_table= ff_mpeg4_y_dc_scale_table; //FIXME add short header support 
5982 5982
      s->c_dc_scale_table= ff_mpeg4_c_dc_scale_table;