From bd1071363648638a1a2d958edb70e8ca83ec4138 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sat, 15 Mar 2008 16:15:47 +0000 Subject: [PATCH] typo fixes Originally committed as revision 12449 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h263.c | 2 +- libavcodec/mpegvideo.c | 2 +- libavcodec/mpegvideo_enc.c | 2 +- libavdevice/x11grab.c | 2 +- libavformat/nutdec.c | 2 +- libavformat/rtpdec.c | 2 +- libavformat/utils.c | 2 +- libpostproc/postprocess.c | 2 +- libpostproc/postprocess_template.c | 14 +++++++------- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavcodec/h263.c b/libavcodec/h263.c index bc393f7c48..6a420f9da6 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -3202,7 +3202,7 @@ static int mpeg4_decode_video_packet_header(MpegEncContext *s) } if(s->pict_type == FF_B_TYPE){ while(s->next_picture.mbskip_table[ s->mb_index2xy[ mb_num ] ]) mb_num++; - if(mb_num >= s->mb_num) return -1; // slice contains just skipped MBs which where allready decoded + if(mb_num >= s->mb_num) return -1; // slice contains just skipped MBs which where already decoded } s->mb_x= mb_num % s->mb_width; diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 4d2f50d407..7f3b907781 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -862,7 +862,7 @@ alloc: } if(s->current_picture_ptr && s->current_picture_ptr->data[0]==NULL) - pic= (AVFrame*)s->current_picture_ptr; //we allready have a unused image (maybe it was set before reading the header) + pic= (AVFrame*)s->current_picture_ptr; //we already have a unused image (maybe it was set before reading the header) else{ i= ff_find_unused_picture(s, 0); pic= (AVFrame*)&s->picture[i]; diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index ab3673ebb9..89d4562a79 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -1375,7 +1375,7 @@ static inline void dct_single_coeff_elimination(MpegEncContext *s, int n, int th }else skip_dc=1; - /* are all which we could set to zero are allready zero? */ + /* Are all we could set to zero already zero? */ if(last_index<=skip_dc - 1) return; for(i=0; i<=last_index; i++){ diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 8ff34bf2b0..bb08dea91f 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -299,7 +299,7 @@ apply_masks(uint8_t *dst, int and, int or, int bits_per_pixel) /** * Paints a mouse pointer in an X11 image. * - * @param image Image where to paint the mouse pointer + * @param image image to paint the mouse pointer to * @param s context used to retrieve original grabbing rectangle * coordinates * @param x Mouse pointer coordinate diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 4026c65495..186e308a72 100644 --- a/libavformat/nutdec.c +++ b/libavformat/nutdec.c @@ -111,7 +111,7 @@ static uint64_t find_any_startcode(ByteIOContext *bc, int64_t pos){ uint64_t state=0; if(pos >= 0) - url_fseek(bc, pos, SEEK_SET); //note, this may fail if the stream is not seekable, but that should not matter, as in this case we simply start where we are currently + url_fseek(bc, pos, SEEK_SET); //note, this may fail if the stream is not seekable, but that should not matter, as in this case we simply start where we currently are while(!url_feof(bc)){ state= (state<<8) | get_byte(bc); diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 7bdfca30a5..20e162e948 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -318,7 +318,7 @@ static int rtp_parse_mp4_au(RTPDemuxContext *s, const uint8_t *buf) if (infos == NULL) return -1; - /* decode the first 2 bytes where are stored the AUHeader sections + /* decode the first 2 bytes where the AUHeader sections are stored length in bits */ au_headers_length = AV_RB16(buf); diff --git a/libavformat/utils.c b/libavformat/utils.c index b37db35b88..4620e2cbaf 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1990,7 +1990,7 @@ int av_find_stream_info(AVFormatContext *ic) count++; } - // close codecs which where opened in try_decode_frame() + // close codecs which were opened in try_decode_frame() for(i=0;inb_streams;i++) { st = ic->streams[i]; if(st->codec->codec) diff --git a/libpostproc/postprocess.c b/libpostproc/postprocess.c index 90ed0876b9..572e6078fb 100644 --- a/libpostproc/postprocess.c +++ b/libpostproc/postprocess.c @@ -392,7 +392,7 @@ static inline void doHorizLowPass_C(uint8_t dst[], int stride, PPContext *c) /** * Experimental Filter 1 (Horizontal) * will not damage linear gradients - * Flat blocks should look like they where passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter + * Flat blocks should look like they were passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter * can only smooth blocks at the expected locations (it cannot smooth them if they did move) * MMX2 version does correct clipping C version does not * not identical with the vertical one diff --git a/libpostproc/postprocess_template.c b/libpostproc/postprocess_template.c index bdc23250a4..8789b5fca6 100644 --- a/libpostproc/postprocess_template.c +++ b/libpostproc/postprocess_template.c @@ -478,7 +478,7 @@ static inline void RENAME(vertRK1Filter)(uint8_t *src, int stride, int QP) /** * Experimental Filter 1 * will not damage linear gradients - * Flat blocks should look like they where passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter + * Flat blocks should look like they were passed through the (1,1,2,2,4,2,2,1,1) 9-Tap filter * can only smooth blocks at the expected locations (it cannot smooth them if they did move) * MMX2 version does correct clipping C version does not */ @@ -1546,7 +1546,7 @@ DERING_CORE((%0, %1, 8) ,(%%REGd, %1, 4),%%mm2,%%mm4,%%mm0,%%mm3,%%mm5,%%mm1, /** * Deinterlaces the given block by linearly interpolating every second line. * will be called for every 8x8 block and can read & write from line 4-15 - * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too + * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. * lines 4-12 will be read into the deblocking filter and should be deinterlaced */ static inline void RENAME(deInterlaceInterpolateLinear)(uint8_t src[], int stride) @@ -1598,7 +1598,7 @@ static inline void RENAME(deInterlaceInterpolateLinear)(uint8_t src[], int strid /** * Deinterlaces the given block by cubic interpolating every second line. * will be called for every 8x8 block and can read & write from line 4-15 - * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too + * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. * lines 4-12 will be read into the deblocking filter and should be deinterlaced * this filter will read lines 3-15 and write 7-13 */ @@ -1663,7 +1663,7 @@ DEINT_CUBIC((%%REGd, %1), (%0, %1, 8) , (%%REGd, %1, 4), (%%REGc) , (%%REGc, /** * Deinterlaces the given block by filtering every second line with a (-1 4 2 4 -1) filter. * will be called for every 8x8 block and can read & write from line 4-15 - * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too + * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. * lines 4-12 will be read into the deblocking filter and should be deinterlaced * this filter will read lines 4-13 and write 5-11 */ @@ -1743,7 +1743,7 @@ DEINT_FF((%%REGd, %1), (%%REGd, %1, 2), (%0, %1, 8) , (%%REGd, %1, 4)) /** * Deinterlaces the given block by filtering every line with a (-1 2 6 2 -1) filter. * will be called for every 8x8 block and can read & write from line 4-15 - * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too + * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. * lines 4-12 will be read into the deblocking filter and should be deinterlaced * this filter will read lines 4-13 and write 4-11 */ @@ -1845,7 +1845,7 @@ DEINT_L5(%%mm1, %%mm0, (%%REGd, %1, 2), (%0, %1, 8) , (%%REGd, %1, 4)) /** * Deinterlaces the given block by filtering all lines with a (1 2 1) filter. * will be called for every 8x8 block and can read & write from line 4-15 - * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too + * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. * lines 4-12 will be read into the deblocking filter and should be deinterlaced * this filter will read lines 4-13 and write 4-11 */ @@ -1947,7 +1947,7 @@ static inline void RENAME(deInterlaceBlendLinear)(uint8_t src[], int stride, uin /** * Deinterlaces the given block by applying a median filter to every second line. * will be called for every 8x8 block and can read & write from line 4-15, - * lines 0-3 have been passed through the deblock / dering filters allready, but can be read too + * lines 0-3 have been passed through the deblock / dering filters already, but can be read, too. * lines 4-12 will be read into the deblocking filter and should be deinterlaced */ static inline void RENAME(deInterlaceMedian)(uint8_t src[], int stride)