# HG changeset patch # User diego # Date 1181674250 0 # Node ID 0244bba24b43f44b8daa7b15eecc123f77803745 # Parent d98460d071467a0713b5505dba04e0c36b3f85e2 misc typo fixes diff -r d98460d07146 -r 0244bba24b43 adpcm.c --- a/adpcm.c Tue Jun 12 15:03:28 2007 +0000 +++ b/adpcm.c Tue Jun 12 18:50:50 2007 +0000 @@ -1272,7 +1272,7 @@ init_get_bits(&gb, buf, size); - //read bits & inital values + //read bits & initial values nb_bits = get_bits(&gb, 2)+2; //av_log(NULL,AV_LOG_INFO,"nb_bits: %d\n", nb_bits); table = swf_index_tables[nb_bits-2]; diff -r d98460d07146 -r 0244bba24b43 dsputil.c --- a/dsputil.c Tue Jun 12 15:03:28 2007 +0000 +++ b/dsputil.c Tue Jun 12 18:50:50 2007 +0000 @@ -3139,7 +3139,7 @@ DCTELEM temp[64]; if(last<=0) return; - //if(permutation[1]==1) return; //FIXME its ok but not clean and might fail for some perms + //if(permutation[1]==1) return; //FIXME it is ok but not clean and might fail for some permutations for(i=0; i<=last; i++){ const int j= scantable[i]; diff -r d98460d07146 -r 0244bba24b43 eval.h --- a/eval.h Tue Jun 12 15:03:28 2007 +0000 +++ b/eval.h Tue Jun 12 18:50:50 2007 +0000 @@ -68,7 +68,7 @@ * @param func1_name NULL terminated array of zero terminated strings of func1 identifers * @param func2_name NULL terminated array of zero terminated strings of func2 identifers * @param error pointer to a char* which is set to an error message if something goes wrong - * @return AVEvalExpr which must be freed with ff_eval_free by the user when its not needed anymore + * @return AVEvalExpr which must be freed with ff_eval_free by the user when it is not needed anymore * NULL if anything went wrong */ AVEvalExpr * ff_parse(char *s, const char **const_name, diff -r d98460d07146 -r 0244bba24b43 flicvideo.c --- a/flicvideo.c Tue Jun 12 15:03:28 2007 +0000 +++ b/flicvideo.c Tue Jun 12 18:50:50 2007 +0000 @@ -584,7 +584,7 @@ * a second pass over the line here, swapping the bytes. */ pixel = 0xFF00; - if (0xFF00 != AV_RL16(&pixel)) /* Check if its not an LE Target */ + if (0xFF00 != AV_RL16(&pixel)) /* Check if it is not an LE target */ { pixel_ptr = y_ptr; pixel_countdown = s->avctx->width; diff -r d98460d07146 -r 0244bba24b43 h261dec.c --- a/h261dec.c Tue Jun 12 15:03:28 2007 +0000 +++ b/h261dec.c Tue Jun 12 18:50:50 2007 +0000 @@ -164,7 +164,7 @@ if(ret>=0) return 0; } - //ok, its not where its supposed to be ... + //OK, it is not where it is supposed to be ... s->gb= s->last_resync_gb; align_get_bits(&s->gb); left= s->gb.size_in_bits - get_bits_count(&s->gb); diff -r d98460d07146 -r 0244bba24b43 h263.c --- a/h263.c Tue Jun 12 15:03:28 2007 +0000 +++ b/h263.c Tue Jun 12 18:50:50 2007 +0000 @@ -3386,7 +3386,7 @@ if(ret>=0) return 0; } - //ok, it's not where its supposed to be ... + //OK, it's not where it is supposed to be ... s->gb= s->last_resync_gb; align_get_bits(&s->gb); left= s->gb.size_in_bits - get_bits_count(&s->gb); @@ -4720,7 +4720,7 @@ i += run; if (i >= 64){ if(s->alt_inter_vlc && rl == &rl_inter && !s->mb_intra){ - //looks like a hack but no, it's the way its supposed to work ... + //Looks like a hack but no, it's the way it is supposed to work ... rl = &rl_intra_aic; i = 0; s->gb= gb; diff -r d98460d07146 -r 0244bba24b43 h264.c --- a/h264.c Tue Jun 12 15:03:28 2007 +0000 +++ b/h264.c Tue Jun 12 18:50:50 2007 +0000 @@ -1446,7 +1446,7 @@ *dst_length= di; *consumed= si + 1;//+1 for the header -//FIXME store exact number of bits in the getbitcontext (its needed for decoding) +//FIXME store exact number of bits in the getbitcontext (it is needed for decoding) return dst; } diff -r d98460d07146 -r 0244bba24b43 h264.h --- a/h264.h Tue Jun 12 15:03:28 2007 +0000 +++ b/h264.h Tue Jun 12 18:50:50 2007 +0000 @@ -34,7 +34,7 @@ #include "mpegvideo.h" #define interlaced_dct interlaced_dct_is_a_bad_name -#define mb_intra mb_intra_is_not_initalized_see_mb_type +#define mb_intra mb_intra_is_not_initialized_see_mb_type #define LUMA_DC_BLOCK_INDEX 25 #define CHROMA_DC_BLOCK_INDEX 26 diff -r d98460d07146 -r 0244bba24b43 huffyuv.c --- a/huffyuv.c Tue Jun 12 15:03:28 2007 +0000 +++ b/huffyuv.c Tue Jun 12 18:50:50 2007 +0000 @@ -1169,7 +1169,7 @@ decode_bgr_bitstream(s, width-1); add_left_prediction_bgr32(p->data[0] + last_line+4, s->temp[0], width-1, &leftr, &leftg, &leftb); - for(y=s->height-2; y>=0; y--){ //yes its stored upside down + for(y=s->height-2; y>=0; y--){ //Yes it is stored upside down. decode_bgr_bitstream(s, width); add_left_prediction_bgr32(p->data[0] + p->linesize[0]*y, s->temp[0], width, &leftr, &leftg, &leftb); diff -r d98460d07146 -r 0244bba24b43 i386/idct_mmx.c --- a/i386/idct_mmx.c Tue Jun 12 15:03:28 2007 +0000 +++ b/i386/idct_mmx.c Tue Jun 12 18:50:50 2007 +0000 @@ -33,7 +33,7 @@ #define rounder(bias) {round (bias), round (bias)} #if 0 -/* C row IDCT - its just here to document the MMXEXT and MMX versions */ +/* C row IDCT - it is just here to document the MMXEXT and MMX versions */ static inline void idct_row (int16_t * row, int offset, int16_t * table, int32_t * rounder) { @@ -313,7 +313,7 @@ #if 0 -// C column IDCT - its just here to document the MMXEXT and MMX versions +// C column IDCT - it is just here to document the MMXEXT and MMX versions static inline void idct_col (int16_t * col, int offset) { /* multiplication - as implemented on mmx */ diff -r d98460d07146 -r 0244bba24b43 i386/mpegvideo_mmx_template.c --- a/i386/mpegvideo_mmx_template.c Tue Jun 12 15:03:28 2007 +0000 +++ b/i386/mpegvideo_mmx_template.c Tue Jun 12 18:50:50 2007 +0000 @@ -96,7 +96,7 @@ int qscale, int *overflow) { long last_non_zero_p1; - int level=0, q; //=0 is cuz gcc says uninitalized ... + int level=0, q; //=0 is cuz gcc says uninitialized ... const uint16_t *qmat, *bias; DECLARE_ALIGNED_16(int16_t, temp_block[64]); diff -r d98460d07146 -r 0244bba24b43 motion_est.c --- a/motion_est.c Tue Jun 12 15:03:28 2007 +0000 +++ b/motion_est.c Tue Jun 12 18:50:50 2007 +0000 @@ -1807,7 +1807,7 @@ P_LEFT[1] = av_clip(mv_table[mot_xy - 1][1], ymin<first_slice_line) { //FIXME maybe allow this over thread boundary as its clipped + if (!s->first_slice_line) { //FIXME maybe allow this over thread boundary as it is clipped P_TOP[0] = av_clip(mv_table[mot_xy - mot_stride ][0], xmin<current_picture_ptr){ - av_log(avctx, AV_LOG_ERROR, "current_picture not initalized\n"); + av_log(avctx, AV_LOG_ERROR, "current_picture not initialized\n"); return -1; } diff -r d98460d07146 -r 0244bba24b43 mpeg4data.h --- a/mpeg4data.h Tue Jun 12 15:03:28 2007 +0000 +++ b/mpeg4data.h Tue Jun 12 18:50:50 2007 +0000 @@ -145,7 +145,8 @@ intra_level, }; -static const uint16_t inter_rvlc[170][2]={ //note this is identical to the intra rvlc except that its reordered +/* Note this is identical to the intra rvlc except that it is reordered. */ +static const uint16_t inter_rvlc[170][2]={ {0x0006, 3},{0x0001, 4},{0x0004, 5},{0x001C, 7}, {0x003C, 8},{0x003D, 8},{0x007C, 9},{0x00FC, 10}, {0x00FD, 10},{0x01FC, 11},{0x01FD, 11},{0x03FC, 12}, diff -r d98460d07146 -r 0244bba24b43 mpegvideo.c --- a/mpegvideo.c Tue Jun 12 15:03:28 2007 +0000 +++ b/mpegvideo.c Tue Jun 12 18:50:50 2007 +0000 @@ -441,11 +441,12 @@ CHECKED_ALLOCZ(pic->pan_scan , 1 * sizeof(AVPanScan)) } - //it might be nicer if the application would keep track of these but it would require a API change + /* It might be nicer if the application would keep track of these + * but it would require an API change. */ memmove(s->prev_pict_types+1, s->prev_pict_types, PREV_PICT_TYPES_BUFFER_SIZE-1); s->prev_pict_types[0]= s->pict_type; if(pic->age < PREV_PICT_TYPES_BUFFER_SIZE && s->prev_pict_types[pic->age] == B_TYPE) - pic->age= INT_MAX; // skipped MBs in b frames are quite rare in mpeg1/2 and its a bit tricky to skip them anyway + pic->age= INT_MAX; // Skipped MBs in B-frames are quite rare in MPEG-1/2 and it is a bit tricky to skip them anyway. return 0; fail: //for the CHECKED_ALLOCZ macro diff -r d98460d07146 -r 0244bba24b43 msmpeg4.c --- a/msmpeg4.c Tue Jun 12 15:03:28 2007 +0000 +++ b/msmpeg4.c Tue Jun 12 18:50:50 2007 +0000 @@ -88,7 +88,7 @@ #include "msmpeg4data.h" #include "msmpeg4tab.h" -#ifdef CONFIG_ENCODERS //strangely gcc includes this even if its not references +#ifdef CONFIG_ENCODERS //strangely gcc includes this even if it is not references static uint8_t rl_length[NB_RL_TABLES][MAX_LEVEL+1][MAX_RUN+1][2]; #endif //CONFIG_ENCODERS @@ -454,7 +454,7 @@ mv->table_mv_bits[code], mv->table_mv_code[code]); if (code == mv->n) { - /* escape : code litterally */ + /* escape : code literally */ put_bits(&s->pb, 6, mx); put_bits(&s->pb, 6, my); } @@ -983,7 +983,8 @@ static VLC v1_inter_cbpc_vlc; static VLC inter_intra_vlc; -/* this table is practically identical to the one from h263 except that its inverted */ +/* This table is practically identical to the one from h263 + * except that it is inverted. */ static void init_h263_dc_for_msmpeg4(void) { int level, uni_code, uni_len; @@ -1380,7 +1381,7 @@ } #endif -/* this is identical to h263 except that its range is multiplied by 2 */ +/* This is identical to h263 except that its range is multiplied by 2. */ static int msmpeg4v2_decode_motion(MpegEncContext * s, int pred, int f_code) { int code, val, sign, shift; diff -r d98460d07146 -r 0244bba24b43 resample2.c --- a/resample2.c Tue Jun 12 15:03:28 2007 +0000 +++ b/resample2.c Tue Jun 12 18:50:50 2007 +0000 @@ -177,8 +177,8 @@ } /** - * initalizes a audio resampler. - * note, if either rate is not a integer then simply scale both rates up so they are + * Initializes an audio resampler. + * Note, if either rate is not an integer then simply scale both rates up so they are. */ AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ AVResampleContext *c= av_mallocz(sizeof(AVResampleContext));