History

fix various typos

Lou Logan committed 12 years ago

Commit 88f25861 parent 137c5e130 files · +40 −40Browse files

Unified · Split

30 files
  1. Changelog +3 −3
  2. doc/codecs.texi +1 −1
  3. doc/encoders.texi +1 −1
  4. doc/examples/decoding_encoding.c +1 −1
  5. doc/faq.texi +1 −1
  6. doc/muxers.texi +1 −1
  7. ffmpeg.c +1 −1
  8. libavcodec/aacdec.c +1 −1
  9. libavcodec/avcodec.h +2 −2
  10. libavcodec/dcadec.c +1 −1
  11. libavcodec/dcaenc.c +1 −1
  12. libavcodec/diracdec.c +2 −2
  13. libavcodec/indeo5.c +1 −1
  14. libavcodec/jpeg2000.c +1 −1
  15. libavdevice/opengl_enc.c +5 −5
  16. libavfilter/buffersrc.h +1 −1
  17. libavfilter/libmpcodecs/vf.h +1 −1
  18. libavfilter/libmpcodecs/vf_fspp.c +1 −1
  19. libavfilter/vf_mp.c +1 −1
  20. libavfilter/vf_smartblur.c +3 −3
  21. libavformat/avio_internal.h +1 −1
  22. libavformat/brstm.c +1 −1
  23. libavformat/ffmdec.c +1 −1
  24. libavformat/hevc.c +1 −1
  25. libavformat/mpeg.c +1 −1
  26. libavutil/bprint.c +1 −1
  27. libavutil/mathematics.h +1 −1
  28. libavutil/pixdesc.h +1 −1
  29. libswresample/swresample-test.c +1 −1
  30. tools/patcheck +1 −1
Changelog+3−3
@@ -9,10 +9,10 @@ version <next>: · 8 unmodified lines
99 - replaygain data export
1010 - VP7 video decoder
1111 - Alias PIX image encoder and decoder
12−- Improvments to the BRender PIX image decoder
13−- Improvments to the XBM decoder
12+- Improvements to the BRender PIX image decoder
13+- Improvements to the XBM decoder
1414 - QTKit input device
15−- improvments to OpenEXR image decoder
15+- improvements to OpenEXR image decoder
1616 - support decoding 16-bit RLE SGI images
1717 - GDI screen grabbing for Windows
1818 - alternative rendition support for HTTP Live Streaming
doc/codecs.texi+1−1
@@ -886,7 +886,7 @@ Set frame skip factor. · 885 unmodified lines
886886 Set frame skip exponent.
887887 Negative values behave identical to the corresponding positive ones, except
888888 that the score is normalized.
889−Positive values exist primarly for compatibility reasons and are not so useful.
889+Positive values exist primarily for compatibility reasons and are not so useful.
890890
891891 @item skipcmp @var{integer} (@emph{encoding,video})
892892 Set frame skip compare function.
doc/encoders.texi+1−1
@@ -80,7 +80,7 @@ thresholds with quantizer steps to find the appropriate quantization with · 79 unmodified lines
8080 distortion below threshold band by band.
8181
8282 The quality of this method is comparable to the two loop searching method
83−descibed below, but somewhat a little better and slower.
83+described below, but somewhat a little better and slower.
8484
8585 @item anmr
8686 Average noise to mask ratio (ANMR) trellis-based solution.
doc/examples/decoding_encoding.c+1−1
@@ -640,7 +640,7 @@ int main(int argc, char **argv) · 639 unmodified lines
640640 "This program generates a synthetic stream and encodes it to a file\n"
641641 "named test.h264, test.mp2 or test.mpg depending on output_type.\n"
642642 "The encoded stream is then decoded and written to a raw data output.\n"
643− "output_type must be choosen between 'h264', 'mp2', 'mpg'.\n",
643+ "output_type must be chosen between 'h264', 'mp2', 'mpg'.\n",
644644 argv[0]);
645645 return 1;
646646 }
doc/faq.texi+1−1
@@ -392,7 +392,7 @@ VOB and a few other formats do not have a global header that describes · 391 unmodified lines
392392 everything present in the file. Instead, applications are supposed to scan
393393 the file to see what it contains. Since VOB files are frequently large, only
394394 the beginning is scanned. If the subtitles happen only later in the file,
395−they will not be initally detected.
395+they will not be initially detected.
396396
397397 Some applications, including the @code{ffmpeg} command-line tool, can only
398398 work with streams that were detected during the initial scan; streams that
doc/muxers.texi+1−1
@@ -714,7 +714,7 @@ Change the syncpoint usage in nut: · 713 unmodified lines
714714 @table @option
715715 @item @var{default} use the normal low-overhead seeking aids.
716716 @item @var{none} do not use the syncpoints at all, reducing the overhead but making the stream non-seekable;
717− Use of this option is not recommanded, as the resulting files are very damage
717+ Use of this option is not recommended, as the resulting files are very damage
718718 sensitive and seeking is not possible. Also in general the overhead from
719719 syncpoints is negligible. Note, -@code{write_index} 0 can be used to disable
720720 all growing data tables, allowing to mux endless streams with limited memory
ffmpeg.c+1−1
@@ -270,7 +270,7 @@ static void sub2video_heartbeat(InputStream *ist, int64_t pts) · 269 unmodified lines
270270 if (!ist2->sub2video.frame)
271271 continue;
272272 /* subtitles seem to be usually muxed ahead of other streams;
273− if not, substracting a larger time here is necessary */
273+ if not, subtracting a larger time here is necessary */
274274 pts2 = av_rescale_q(pts, ist->st->time_base, ist2->st->time_base) - 1;
275275 /* do not send the heartbeat frame if the subtitle is already ahead */
276276 if (pts2 <= ist2->sub2video.last_pts)
libavcodec/aacdec.c+1−1
@@ -1946,7 +1946,7 @@ static int decode_ics(AACContext *ac, SingleChannelElement *sce, · 1945 unmodified lines
19461946 avpriv_request_sample(ac->avctx, "SSR");
19471947 return AVERROR_PATCHWELCOME;
19481948 }
1949− // I see no textual basis in the spec for this occuring after SSR gain
1949+ // I see no textual basis in the spec for this occurring after SSR gain
19501950 // control, but this is what both reference and real implmentations do
19511951 if (tns->present && er_syntax)
19521952 if (decode_tns(ac, tns, gb, ics) < 0)
libavcodec/avcodec.h+2−2
@@ -575,7 +575,7 @@ typedef struct AVCodecDescriptor { · 574 unmodified lines
575575 /**
576576 * MIME type(s) associated with the codec.
577577 * May be NULL; if not, a NULL-terminated array of MIME types.
578− * The first item is always non-NULL and is the prefered MIME type.
578+ * The first item is always non-NULL and is the preferred MIME type.
579579 */
580580 const char *const *mime_types;
581581 } AVCodecDescriptor;
@@ -4957,7 +4957,7 @@ AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); · 4375 unmodified lines
49574957 * @return >= 0 in case of success, or a negative error code in case of failure
49584958 *
49594959 * If the return value is positive, an output buffer is allocated and
4960− * is availble in *poutbuf, and is distinct from the input buffer.
4960+ * is available in *poutbuf, and is distinct from the input buffer.
49614961 *
49624962 * If the return value is 0, the output buffer is not allocated and
49634963 * should be considered identical to the input buffer, or in case
libavcodec/dcadec.c+1−1
@@ -2423,7 +2423,7 @@ FF_ENABLE_DEPRECATION_WARNINGS · 2422 unmodified lines
24232423 }
24242424 }
24252425
2426− /* make sure that we have managed to get equivelant dts/avcodec channel
2426+ /* make sure that we have managed to get equivalent dts/avcodec channel
24272427 * masks in some sense -- unfortunately some channels could overlap */
24282428 if (av_popcount(channel_mask) != av_popcount(channel_layout)) {
24292429 av_log(avctx, AV_LOG_DEBUG,
libavcodec/dcaenc.c+1−1
@@ -868,7 +868,7 @@ static void put_subframe(DCAContext *c, int subframe) · 867 unmodified lines
868868 for (band = 0; band < DCA_SUBBANDS; band++)
869869 put_bits(&c->pb, 1, 0);
870870
871− /* Prediction VQ addres: not transmitted */
871+ /* Prediction VQ address: not transmitted */
872872 /* Bit allocation index */
873873 for (ch = 0; ch < c->fullband_channels; ch++)
874874 for (band = 0; band < DCA_SUBBANDS; band++)
libavcodec/diracdec.c+2−2
@@ -199,7 +199,7 @@ typedef struct DiracContext { · 198 unmodified lines
199199 uint8_t *edge_emu_buffer[4];
200200 uint8_t *edge_emu_buffer_base;
201201
202− uint16_t *mctmp; /* buffer holding the MC data multipled by OBMC weights */
202+ uint16_t *mctmp; /* buffer holding the MC data multiplied by OBMC weights */
203203 uint8_t *mcscratch;
204204 int buffer_stride;
205205
@@ -694,7 +694,7 @@ static void lowdelay_subband(DiracContext *s, GetBitContext *gb, int quant, · 488 unmodified lines
694694 IDWTELEM *buf1 = b1->ibuf + top * b1->stride;
695695 IDWTELEM *buf2 = b2 ? b2->ibuf + top * b2->stride : NULL;
696696 int x, y;
697− /* we have to constantly check for overread since the spec explictly
697+ /* we have to constantly check for overread since the spec explicitly
698698 requires this, with the meaning that all remaining coeffs are set to 0 */
699699 if (get_bits_count(gb) >= bits_end)
700700 return;
libavcodec/indeo5.c+1−1
@@ -335,7 +335,7 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx) · 334 unmodified lines
335335 }
336336
337337 if (ctx->frame_type == FRAMETYPE_INTER_SCAL && !ctx->is_scalable) {
338− av_log(avctx, AV_LOG_ERROR, "Scalable inter frame in non scaleable stream\n");
338+ av_log(avctx, AV_LOG_ERROR, "Scalable inter frame in non scalable stream\n");
339339 ctx->frame_type = FRAMETYPE_INTER;
340340 return AVERROR_INVALIDDATA;
341341 }
libavcodec/jpeg2000.c+1−1
@@ -249,7 +249,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, · 248 unmodified lines
249249 else
250250 reslevel->nbands = 3;
251251
252− /* Number of precincts wich span the tile for resolution level reslevelno
252+ /* Number of precincts which span the tile for resolution level reslevelno
253253 * see B.6 in ISO/IEC 15444-1:2002 eq. B-16
254254 * num_precincts_x = |- trx_1 / 2 ^ log2_prec_width) -| - (trx_0 / 2 ^ log2_prec_width)
255255 * num_precincts_y = |- try_1 / 2 ^ log2_prec_width) -| - (try_0 / 2 ^ log2_prec_width)
libavdevice/opengl_enc.c+5−5
@@ -66,7 +66,7 @@ · 65 unmodified lines
6666
6767 /* FF_GL_RED_COMPONENT is used for plannar pixel types.
6868 * Only red component is sampled in shaders.
69− * On some platforms GL_RED is not availabe and GL_LUMINANCE have to be used,
69+ * On some platforms GL_RED is not available and GL_LUMINANCE have to be used,
7070 * but since OpenGL 3.0 GL_LUMINANCE is deprecated.
7171 * GL_RED produces RGBA = value, 0, 0, 1.
7272 * GL_LUMINANCE produces RGBA = value, value, value, 1.
@@ -583,7 +583,7 @@ static void opengl_make_ortho(float matrix[16], float left, float right, · 510 unmodified lines
583583 static av_cold int opengl_read_limits(OpenGLContext *opengl)
584584 {
585585 static const struct{
586− const char *extention;
586+ const char *extension;
587587 int major;
588588 int minor;
589589 } required_extensions[] = {
@@ -603,12 +603,12 @@ static av_cold int opengl_read_limits(OpenGLContext *opengl) · 13 unmodified lines
603603 av_log(opengl, AV_LOG_DEBUG, "OpenGL version: %s\n", version);
604604 sscanf(version, "%d.%d", &major, &minor);
605605
606− for (i = 0; required_extensions[i].extention; i++) {
606+ for (i = 0; required_extensions[i].extension; i++) {
607607 if (major < required_extensions[i].major &&
608608 (major == required_extensions[i].major && minor < required_extensions[i].minor) &&
609− !strstr(extensions, required_extensions[i].extention)) {
609+ !strstr(extensions, required_extensions[i].extension)) {
610610 av_log(opengl, AV_LOG_ERROR, "Required extension %s is not supported.\n",
611− required_extensions[i].extention);
611+ required_extensions[i].extension);
612612 av_log(opengl, AV_LOG_DEBUG, "Supported extensions are: %s\n", extensions);
613613 return AVERROR(ENOSYS);
614614 }
libavfilter/buffersrc.h+1−1
@@ -138,7 +138,7 @@ int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame); · 137 unmodified lines
138138 * Add a frame to the buffer source.
139139 *
140140 * By default, if the frame is reference-counted, this function will take
141− * ownership of the reference(s) and reset the frame. This can be controled
141+ * ownership of the reference(s) and reset the frame. This can be controlled
142142 * using the flags.
143143 *
144144 * If this function returns an error, the input frame is not touched.
libavfilter/libmpcodecs/vf.h+1−1
@@ -103,7 +103,7 @@ typedef struct vf_seteq_s · 102 unmodified lines
103103 #define VFCTRL_CHANGE_RECTANGLE 9 /* Change the rectangle boundaries */
104104 #define VFCTRL_FLIP_PAGE 10 /* Tell the vo to flip pages */
105105 #define VFCTRL_DUPLICATE_FRAME 11 /* For encoding - encode zero-change frame */
106−#define VFCTRL_SKIP_NEXT_FRAME 12 /* For encoding - drop the next frame that passes thru */
106+#define VFCTRL_SKIP_NEXT_FRAME 12 /* For encoding - drop the next frame that passes through */
107107 #define VFCTRL_FLUSH_FRAMES 13 /* For encoding - flush delayed frames */
108108 #define VFCTRL_SCREENSHOT 14 /* Make a screenshot */
109109 #define VFCTRL_INIT_EOSD 15 /* Select EOSD renderer */
libavfilter/libmpcodecs/vf_fspp.c+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 * "Aria Nosratinia Embedded Post-Processing for
2525 * Enhancement of Compressed Images (1999)"
2626 * (http://citeseer.nj.nec.com/nosratinia99embedded.html)
27− * Futher, with splitting (i)dct into hor/ver passes, one of them can be
27+ * Further, with splitting (i)dct into hor/ver passes, one of them can be
2828 * performed once per block, not pixel. This allows for much better speed.
2929 */
3030
libavfilter/vf_mp.c+1−1
@@ -210,7 +210,7 @@ int ff_mp_msg_test(int mod, int lev){ · 209 unmodified lines
210210
211211 void ff_init_avcodec(void)
212212 {
213− //we maybe should init but its kinda 1. unneeded 2. a bit inpolite from here
213+ //we maybe should init but its kinda 1. unneeded 2. a bit impolite from here
214214 }
215215
216216 //Exact copy of vf.c
libavfilter/vf_smartblur.c+3−3
@@ -201,7 +201,7 @@ static void blur(uint8_t *dst, const int dst_linesize, · 200 unmodified lines
201201 if (diff > 2 * threshold)
202202 dst[x + y * dst_linesize] = orig;
203203 else if (diff > threshold)
204− /* add 'diff' and substract 'threshold' from 'filtered' */
204+ /* add 'diff' and subtract 'threshold' from 'filtered' */
205205 dst[x + y * dst_linesize] = orig - threshold;
206206 } else {
207207 if (-diff > 2 * threshold)
@@ -223,13 +223,13 @@ static void blur(uint8_t *dst, const int dst_linesize, · 15 unmodified lines
223223 if (diff <= -threshold)
224224 dst[x + y * dst_linesize] = orig;
225225 else if (diff <= -2 * threshold)
226− /* substract 'diff' and 'threshold' from 'orig' */
226+ /* subtract 'diff' and 'threshold' from 'orig' */
227227 dst[x + y * dst_linesize] = filtered - threshold;
228228 } else {
229229 if (diff >= threshold)
230230 dst[x + y * dst_linesize] = orig;
231231 else if (diff >= 2 * threshold)
232− /* add 'threshold' and substract 'diff' from 'orig' */
232+ /* add 'threshold' and subtract 'diff' from 'orig' */
233233 dst[x + y * dst_linesize] = filtered + threshold;
234234 }
235235 }
libavformat/avio_internal.h+1−1
@@ -93,7 +93,7 @@ int ffio_set_buf_size(AVIOContext *s, int buf_size); · 92 unmodified lines
9393 *
9494 * Will ensure that when reading sequentially up to buf_size, seeking
9595 * within the current pos and pos+buf_size is possible.
96− * Once the stream position moves outside this window this gurantee is lost.
96+ * Once the stream position moves outside this window this guarantee is lost.
9797 */
9898 int ffio_ensure_seekback(AVIOContext *s, int buf_size);
9999
libavformat/brstm.c+1−1
@@ -200,7 +200,7 @@ static int read_header(AVFormatContext *s) · 199 unmodified lines
200200 goto fail;
201201 }
202202 if (b->adpc) {
203− av_log(s, AV_LOG_WARNING, "skipping additonal ADPC chunk\n");
203+ av_log(s, AV_LOG_WARNING, "skipping additional ADPC chunk\n");
204204 goto skip;
205205 } else {
206206 b->adpc = av_mallocz(asize);
libavformat/ffmdec.c+1−1
@@ -510,7 +510,7 @@ static int ffm_read_packet(AVFormatContext *s, AVPacket *pkt) · 509 unmodified lines
510510 if (ffm_read_data(s, ffm->header+16, 4, 1) != 4)
511511 return -1;
512512 ffm->read_state = READ_DATA;
513− /* fall thru */
513+ /* fall through */
514514 case READ_DATA:
515515 size = AV_RB24(ffm->header + 2);
516516 if ((ret = ffm_is_avail_data(s, size)) < 0)
libavformat/hevc.c+1−1
@@ -799,7 +799,7 @@ static void hvcc_init(HEVCDecoderConfigurationRecord *hvcc) · 798 unmodified lines
799799
800800 /*
801801 * Initialize this field with an invalid value which can be used to detect
802− * whether we didn't see any VUI (in wich case it should be reset to zero).
802+ * whether we didn't see any VUI (in which case it should be reset to zero).
803803 */
804804 hvcc->min_spatial_segmentation_idc = MAX_SPATIAL_SEGMENTATION + 1;
805805 }
libavformat/mpeg.c+1−1
@@ -464,7 +464,7 @@ static int mpegps_read_packet(AVFormatContext *s, · 463 unmodified lines
464464 MpegDemuxContext *m = s->priv_data;
465465 AVStream *st;
466466 int len, startcode, i, es_type, ret;
467− int lpcm_header_len = -1; //Init to supress warning
467+ int lpcm_header_len = -1; //Init to suppress warning
468468 int request_probe= 0;
469469 enum AVCodecID codec_id = AV_CODEC_ID_NONE;
470470 enum AVMediaType type;
libavutil/bprint.c+1−1
@@ -356,7 +356,7 @@ int main(void) · 355 unmodified lines
356356 av_bprint_init(&b, 0, 1);
357357 bprint_pascal(&b, 25);
358358 printf("Long text in automatic buffer: %u/%u\n", (unsigned)strlen(b.str)/8*8, b.len);
359− /* Note that the size of the automatic buffer is arch-dependant. */
359+ /* Note that the size of the automatic buffer is arch-dependent. */
360360
361361 av_bprint_init(&b, 0, 0);
362362 bprint_pascal(&b, 25);
libavutil/mathematics.h+1−1
@@ -146,7 +146,7 @@ int64_t av_rescale_delta(AVRational in_tb, int64_t in_ts, AVRational fs_tb, int · 145 unmodified lines
146146 /**
147147 * Add a value to a timestamp.
148148 *
149− * This function gurantees that when the same value is repeatly added that
149+ * This function guarantees that when the same value is repeatly added that
150150 * no accumulation of rounding errors occurs.
151151 *
152152 * @param ts Input timestamp
libavutil/pixdesc.h+1−1
@@ -257,7 +257,7 @@ enum AVPixelFormat av_pix_fmt_desc_get_id(const AVPixFmtDescriptor *desc); · 256 unmodified lines
257257 *
258258 * See av_get_chroma_sub_sample() for a function that asserts a
259259 * valid pixel format instead of returning an error code.
260− * Its recommanded that you use avcodec_get_chroma_sub_sample unless
260+ * Its recommended that you use avcodec_get_chroma_sub_sample unless
261261 * you do check the return code!
262262 *
263263 * @param[in] pix_fmt the pixel format
libswresample/swresample-test.c+1−1
@@ -164,7 +164,7 @@ static void audiogen(void *data, enum AVSampleFormat sample_fmt, · 163 unmodified lines
164164 a += M_PI * 1000.0 * 2.0 / sample_rate;
165165 }
166166
167− /* 1 second of varing frequency between 100 and 10000 Hz */
167+ /* 1 second of varying frequency between 100 and 10000 Hz */
168168 a = 0;
169169 for (i = 0; i < 1 * sample_rate && k < nb_samples; i++, k++) {
170170 v = sin(a) * 0.30;
tools/patcheck+1−1
@@ -67,7 +67,7 @@ $EGREP $OPT '^\+ *(const *|)static' $*| $EGREP --color=always '[^=]= *(0|NULL)[^ · 66 unmodified lines
6767 cat $TMP
6868 hiegrep '# *ifdef * (HAVE|CONFIG)_' 'ifdefs that should be #if' $*
6969
70−hiegrep '\b(awnser|cant|dont|wont|doesnt|usefull|successfull|occured|teh|alot|wether|skiped|skiping|heigth|informations|colums|loosy|loosing|ouput|seperate|preceed|upto|paket|posible|unkown|inpossible|dimention|acheive|funtions|overriden|outputing|seperation|initalize|compatibilty|bistream|knwon|unknwon)\b' 'common typos' $*
70+hiegrep '\b(awnser|cant|dont|wont|doesnt|usefull|successfull|occured|teh|alot|wether|skiped|skiping|heigth|informations|colums|loosy|loosing|ouput|seperate|preceed|upto|paket|posible|unkown|inpossible|dimention|acheive|funtions|overriden|outputing|seperation|initalize|compatibilty|bistream|knwon|unknwon|choosen|additonal|gurantee|availble|wich)\b' 'common typos' $*
7171
7272 hiegrep 'av_log\( *NULL' 'Missing context in av_log' $*
7373 hiegrep '[^sn]printf' 'Please use av_log' $*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t