History

Fix a bunch of common typos.

Diego Biurrun committed 15 years ago

Commit da9cea71 parent 2e87b4c51 files · +83 −82Browse files

Unified · Split

51 files
  1. avconv.c +1 −1
  2. avserver.c +1 −1
  3. cmdutils.h +3 −3
  4. doc/avconv.texi +1 −1
  5. doc/avserver.texi +1 −1
  6. doc/avtools-common-opts.texi +1 −1
  7. doc/developer.texi +2 −2
  8. doc/eval.texi +2 −2
  9. doc/filters.texi +9 −9
  10. doc/general.texi +1 −1
  11. doc/protocols.texi +3 −3
  12. doc/soc.txt +1 −1
  13. ffmpeg.c +1 −1
  14. libavcodec/avcodec.h +2 −2
  15. libavcodec/bitstream.c +1 −1
  16. libavcodec/dsputil.h +2 −2
  17. libavcodec/eatgv.c +2 −2
  18. libavcodec/error_resilience.c +1 −1
  19. libavcodec/g722enc.c +1 −1
  20. libavcodec/h264.c +3 −3
  21. libavcodec/jfdctint_template.c +1 −1
  22. libavcodec/lpc.h +1 −1
  23. libavcodec/mjpegdec.c +3 −3
  24. libavcodec/mpegvideo.h +1 −1
  25. libavcodec/proresdec.c +1 −1
  26. libavcodec/tscc.c +1 −1
  27. libavcodec/vaapi_mpeg4.c +1 −1
  28. libavcodec/vc1dec.c +3 −3
  29. libavcodec/wmaprodec.c +1 −1
  30. libavcodec/wmavoice.c +2 −2
  31. libavcodec/x86/vc1dsp_yasm.asm +1 −1
  32. libavdevice/jack_audio.c +1 −1
  33. libavdevice/timefilter.h +1 −1
  34. libavformat/avformat.h +4 −3
  35. libavformat/flvenc.c +2 −2
  36. libavformat/id3v2.c +1 −1
  37. libavformat/img2.c +1 −1
  38. libavformat/iv8.c +1 −1
  39. libavformat/mms.h +1 −1
  40. libavformat/movenc.c +1 −1
  41. libavformat/mpegts.c +4 −4
  42. libavformat/mpegtsenc.c +1 −1
  43. libavformat/mxfenc.c +1 −1
  44. libavformat/rdt.c +1 −1
  45. libavformat/rtp.h +1 −1
  46. libavformat/udp.c +1 −1
  47. libavformat/utils.c +2 −2
  48. libavutil/eval.h +1 −1
  49. libpostproc/postprocess.c +1 −1
  50. libpostproc/postprocess_internal.h +1 −1
  51. tools/patcheck +1 −1
avconv.c+1−1
@@ -3682,7 +3682,7 @@ static void opt_output_file(void *optctx, const char *filename) · 3681 unmodified lines
36823682 }
36833683
36843684 if (!(oc->oformat->flags & AVFMT_NOFILE)) {
3685− /* test if it already exists to avoid loosing precious files */
3685+ /* test if it already exists to avoid losing precious files */
36863686 assert_file_overwrite(filename);
36873687
36883688 /* open the file */
avserver.c+1−1
@@ -475,7 +475,7 @@ static void start_children(FFStream *feed) · 474 unmodified lines
475475 slash++;
476476 strcpy(slash, "avconv");
477477
478− http_log("Launch commandline: ");
478+ http_log("Launch command line: ");
479479 http_log("%s ", pathname);
480480 for (i = 1; feed->child_argv[i] && feed->child_argv[i][0]; i++)
481481 http_log("%s ", feed->child_argv[i]);
cmdutils.h+3−3
@@ -83,7 +83,7 @@ int opt_timelimit(const char *opt, const char *arg); · 82 unmodified lines
8383 * parsed or the corresponding value is invalid.
8484 *
8585 * @param context the context of the value to be set (e.g. the
86− * corresponding commandline option name)
86+ * corresponding command line option name)
8787 * @param numstr the string to be parsed
8888 * @param type the type (OPT_INT64 or OPT_FLOAT) as which the
8989 * string should be parsed
@@ -98,7 +98,7 @@ double parse_number_or_die(const char *context, const char *numstr, int type, do · 8 unmodified lines
9898 * the string cannot be correctly parsed.
9999 *
100100 * @param context the context of the value to be set (e.g. the
101− * corresponding commandline option name)
101+ * corresponding command line option name)
102102 * @param timestr the string to be parsed
103103 * @param is_duration a flag which tells how to interpret timestr, if
104104 * not zero timestr is interpreted as a duration, otherwise as a
@@ -181,7 +181,7 @@ void parse_options(void *optctx, int argc, char **argv, const OptionDef *options · 76 unmodified lines
181181 int parse_option(void *optctx, const char *opt, const char *arg, const OptionDef *options);
182182
183183 /**
184− * Find the '-loglevel' option in the commandline args and apply it.
184+ * Find the '-loglevel' option in the command line args and apply it.
185185 */
186186 void parse_loglevel(int argc, char **argv, const OptionDef *options);
187187
doc/avconv.texi+1−1
@@ -29,7 +29,7 @@ rates and resize video on the fly with a high quality polyphase filter. · 28 unmodified lines
2929 avconv reads from an arbitrary number of input "files" (which can be regular
3030 files, pipes, network streams, grabbing devices, etc.), specified by the
3131 @code{-i} option, and writes to an arbitrary number of output "files", which are
32−specified by a plain output filename. Anything found on the commandline which
32+specified by a plain output filename. Anything found on the command line which
3333 cannot be interpreted as an option is considered to be an output filename.
3434
3535 Each input or output file can in principle contain any number of streams of
doc/avserver.texi+1−1
@@ -150,7 +150,7 @@ that only captures in stereo and also requires that one channel be flipped. · 149 unmodified lines
150150 If you are one of these people, then export 'AUDIO_FLIP_LEFT=1' before
151151 starting avconv.
152152
153−@subsection The audio and video loose sync after a while.
153+@subsection The audio and video lose sync after a while.
154154
155155 Yes, they do.
156156
doc/avtools-common-opts.texi+1−1
@@ -9,7 +9,7 @@ example 'KB', 'MiB', 'G' and 'B' as postfix. · 8 unmodified lines
99 Options which do not take arguments are boolean options, and set the
1010 corresponding value to true. They can be set to false by prefixing
1111 with "no" the option name, for example using "-nofoo" in the
12−commandline will set to false the boolean option with name "foo".
12+command line will set to false the boolean option with name "foo".
1313
1414 @section Stream specifiers
1515 Some options are applied per-stream, e.g. bitrate or codec. Stream specifiers
doc/developer.texi+2−2
@@ -49,7 +49,7 @@ mailing list. · 48 unmodified lines
4949 The code is written in K&R C style. That means the following:
5050 @itemize @bullet
5151 @item
52−The control statements are formatted by putting space betwen the statement
52+The control statements are formatted by putting space between the statement
5353 and parenthesis in the following way:
5454 @example
5555 for (i = 0; i < filter->input_count; i++) @{
@@ -79,7 +79,7 @@ if (!pic || !picref) · 23 unmodified lines
7979 goto fail;
8080 @end example
8181 @item
82−Do not put spaces immediately inside parenthesis. @samp{if (ret)} is
82+Do not put spaces immediately inside parentheses. @samp{if (ret)} is
8383 a valid style; @samp{if ( ret )} is not.
8484 @end itemize
8585
doc/eval.texi+2−2
@@ -1,7 +1,7 @@
11 @chapter Expression Evaluation
22 @c man begin EXPRESSION EVALUATION
33
4−When evaluating an arithemetic expression, Libav uses an internal
4+When evaluating an arithmetic expression, Libav uses an internal
55 formula evaluator, implemented through the @file{libavutil/eval.h}
66 interface.
77
@@ -53,7 +53,7 @@ returns the value stored in the internal variable. · 45 unmodified lines
5353
5454 @item ld(var)
5555 Allow to load the value of the internal variable with number
56−@var{var}, which was previosly stored with st(@var{var}, @var{expr}).
56+@var{var}, which was previously stored with st(@var{var}, @var{expr}).
5757 The function returns the loaded value.
5858
5959 @item while(cond, expr)
doc/filters.texi+9−9
@@ -200,7 +200,7 @@ input plane. They are expressions, and can contain the following · 199 unmodified lines
200200 constants:
201201 @table @option
202202 @item w, h
203−the input width and heigth in pixels
203+the input width and height in pixels
204204
205205 @item cw, ch
206206 the input chroma image width and height in pixels
@@ -888,7 +888,7 @@ the corresponding mathematical approximated values for e · 681 unmodified lines
888888 (euler number), pi (greek PI), PHI (golden ratio)
889889
890890 @item w, h
891−the input width and heigth
891+the input width and height
892892
893893 @item val
894894 input value for the pixel component
@@ -992,7 +992,7 @@ The filter takes the parameters: @var{filter_name}@{:=@}@var{filter_params}. · 97 unmodified lines
992992 filter. If not specified the default values are assumed.
993993
994994 Refer to the official libopencv documentation for more precise
995−informations:
995+information:
996996 @url{http://opencv.willowgarage.com/documentation/c/image_filtering.html}
997997
998998 Follows the list of supported libopencv filters.
@@ -1008,7 +1008,7 @@ It accepts the parameters: @var{struct_el}:@var{nb_iterations}. · 9 unmodified lines
10081008 @var{struct_el} represents a structuring element, and has the syntax:
10091009 @var{cols}x@var{rows}+@var{anchor_x}x@var{anchor_y}/@var{shape}
10101010
1011−@var{cols} and @var{rows} represent the number of colums and rows of
1011+@var{cols} and @var{rows} represent the number of columns and rows of
10121012 the structuring element, @var{anchor_x} and @var{anchor_y} the anchor
10131013 point, and @var{shape} the shape for the structuring element, and
10141014 can be one of the values "rect", "cross", "ellipse", "custom".
@@ -1184,7 +1184,7 @@ value for @var{width} or @var{height} is 0, the corresponding input size · 169 unmodified lines
11841184 is used for the output.
11851185
11861186 The @var{width} expression can reference the value set by the
1187−@var{height} expression, and viceversa.
1187+@var{height} expression, and vice versa.
11881188
11891189 The default value of @var{width} and @var{height} is 0.
11901190
@@ -1194,7 +1194,7 @@ Specify the offsets where to place the input image in the padded area · 3 unmodified lines
11941194 with respect to the top/left border of the output image.
11951195
11961196 The @var{x} expression can reference the value set by the @var{y}
1197−expression, and viceversa.
1197+expression, and vice versa.
11981198
11991199 The default value of @var{x} and @var{y} is 0.
12001200
@@ -1608,7 +1608,7 @@ seconds · 407 unmodified lines
16081608
16091609 @item pos
16101610 position of the frame in the input stream, -1 if this information in
1611−unavailable and/or meanigless (for example in case of synthetic video)
1611+unavailable and/or meaningless (for example in case of synthetic video)
16121612
16131613 @item fmt
16141614 pixel format name
@@ -1825,7 +1825,7 @@ through the interface defined in @file{libavfilter/vsrc_buffer.h}. · 210 unmodified lines
18251825 It accepts the following parameters:
18261826 @var{width}:@var{height}:@var{pix_fmt_string}:@var{timebase_num}:@var{timebase_den}:@var{sample_aspect_ratio_num}:@var{sample_aspect_ratio.den}
18271827
1828−All the parameters need to be explicitely defined.
1828+All the parameters need to be explicitly defined.
18291829
18301830 Follows the list of the accepted parameters.
18311831
@@ -2017,7 +2017,7 @@ separated by ":". The description of the accepted options follows. · 185 unmodified lines
20172017
20182018 @item size, s
20192019 Specify the size of the sourced video, it may be a string of the form
2020−@var{width}x@var{heigth}, or the name of a size abbreviation. The
2020+@var{width}x@var{height}, or the name of a size abbreviation. The
20212021 default value is "320x240".
20222022
20232023 @item rate, r
doc/general.texi+1−1
@@ -485,7 +485,7 @@ following image formats are supported: · 484 unmodified lines
485485 @item id RoQ video @tab X @tab X
486486 @tab Used in Quake III, Jedi Knight 2, other computer games.
487487 @item IFF ILBM @tab @tab X
488− @tab IFF interlaved bitmap
488+ @tab IFF interleaved bitmap
489489 @item IFF ByteRun1 @tab @tab X
490490 @tab IFF run length encoded bitmap
491491 @item Intel H.263 @tab @tab X
doc/protocols.texi+3−3
@@ -155,8 +155,8 @@ be seekable, so they will fail with the pipe output protocol. · 154 unmodified lines
155155
156156 Real-Time Messaging Protocol.
157157
158−The Real-Time Messaging Protocol (RTMP) is used for streaming multime‐
159−dia content across a TCP/IP network.
158+The Real-Time Messaging Protocol (RTMP) is used for streaming multimedia
159+content across a TCP/IP network.
160160
161161 The required syntax is:
162162 @example
@@ -195,7 +195,7 @@ Real-Time Messaging Protocol and its variants supported through · 32 unmodified lines
195195 librtmp.
196196
197197 Requires the presence of the librtmp headers and library during
198−configuration. You need to explicitely configure the build with
198+configuration. You need to explicitly configure the build with
199199 "--enable-librtmp". If enabled this will replace the native RTMP
200200 protocol.
201201
doc/soc.txt+1−1
@@ -18,7 +18,7 @@ essential that changes to their codebase are publicly visible, clean and · 17 unmodified lines
1818 easy reviewable that again leads us to:
1919 * use of a revision control system like git
2020 * separation of cosmetic from non-cosmetic changes (this is almost entirely
21− ignored by mentors and students in soc 2006 which might lead to a suprise
21+ ignored by mentors and students in soc 2006 which might lead to a surprise
2222 when the code will be reviewed at the end before a possible inclusion in
2323 Libav, individual changes were generally not reviewable due to cosmetics).
2424 * frequent commits, so that comments can be provided early
ffmpeg.c+1−1
@@ -3797,7 +3797,7 @@ static void opt_output_file(void *optctx, const char *filename) · 3796 unmodified lines
37973797 }
37983798
37993799 if (!(oc->oformat->flags & AVFMT_NOFILE)) {
3800− /* test if it already exists to avoid loosing precious files */
3800+ /* test if it already exists to avoid losing precious files */
38013801 if (!file_overwrite &&
38023802 (strchr(filename, ':') == NULL ||
38033803 filename[1] == ':' ||
libavcodec/avcodec.h+2−2
@@ -1274,7 +1274,7 @@ typedef struct AVCodecContext { · 1273 unmodified lines
12741274 * Some codecs need additional format info. It is stored here.
12751275 * If any muxer uses this then ALL demuxers/parsers AND encoders for the
12761276 * specific codec MUST set it correctly otherwise stream copy breaks.
1277− * In general use of this field by muxers is not recommanded.
1277+ * In general use of this field by muxers is not recommended.
12781278 * - encoding: Set by libavcodec.
12791279 * - decoding: Set by libavcodec. (FIXME: Is this OK?)
12801280 */
@@ -3444,7 +3444,7 @@ typedef struct ReSampleContext ReSampleContext; · 2163 unmodified lines
34443444 * @param linear if 1 then the used FIR filter will be linearly interpolated
34453445 between the 2 closest, if 0 the closest will be used
34463446 * @param cutoff cutoff frequency, 1.0 corresponds to half the output sampling rate
3447− * @return allocated ReSampleContext, NULL if error occured
3447+ * @return allocated ReSampleContext, NULL if error occurred
34483448 */
34493449 ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
34503450 int output_rate, int input_rate,
libavcodec/bitstream.c+1−1
@@ -103,7 +103,7 @@ static int alloc_table(VLC *vlc, int size, int use_static) · 102 unmodified lines
103103 vlc->table_size += size;
104104 if (vlc->table_size > vlc->table_allocated) {
105105 if(use_static)
106− abort(); //cant do anything, init_vlc() is used with too little memory
106+ abort(); // cannot do anything, init_vlc() is used with too little memory
107107 vlc->table_allocated += (1 << vlc->bits);
108108 vlc->table = av_realloc(vlc->table,
109109 sizeof(VLC_TYPE) * 2 * vlc->table_allocated);
libavcodec/dsputil.h+2−2
@@ -498,8 +498,8 @@ typedef struct DSPContext { · 497 unmodified lines
498498 * with the zigzag/alternate scan<br>
499499 * an example to avoid confusion:
500500 * - (->decode coeffs -> zigzag reorder -> dequant -> reference idct ->...)
501− * - (x -> referece dct -> reference idct -> x)
502− * - (x -> referece dct -> simple_mmx_perm = idct_permutation -> simple_idct_mmx -> x)
501+ * - (x -> reference dct -> reference idct -> x)
502+ * - (x -> reference dct -> simple_mmx_perm = idct_permutation -> simple_idct_mmx -> x)
503503 * - (->decode coeffs -> zigzag reorder -> simple_mmx_perm -> dequant -> simple_idct_mmx ->...)
504504 */
505505 uint8_t idct_permutation[64];
libavcodec/eatgv.c+2−2
@@ -155,7 +155,7 @@ static int tgv_decode_inter(TgvContext * s, const uint8_t *buf, const uint8_t *b · 154 unmodified lines
155155 vector_bits = AV_RL16(&buf[6]);
156156 buf += 12;
157157
158− /* allocate codebook buffers as neccessary */
158+ /* allocate codebook buffers as necessary */
159159 if (num_mvs > s->num_mvs) {
160160 s->mv_codebook = av_realloc(s->mv_codebook, num_mvs*2*sizeof(int));
161161 s->num_mvs = num_mvs;
@@ -286,7 +286,7 @@ static int tgv_decode_frame(AVCodecContext *avctx, · 124 unmodified lines
286286 s->frame.buffer_hints = FF_BUFFER_HINTS_VALID;
287287 s->frame.linesize[0] = s->width;
288288
289− /* allocate additional 12 bytes to accomodate av_memcpy_backptr() OUTBUF_PADDED optimisation */
289+ /* allocate additional 12 bytes to accommodate av_memcpy_backptr() OUTBUF_PADDED optimisation */
290290 s->frame.data[0] = av_malloc(s->width*s->height + 12);
291291 if (!s->frame.data[0])
292292 return AVERROR(ENOMEM);
libavcodec/error_resilience.c+1−1
@@ -790,7 +790,7 @@ void ff_er_frame_end(MpegEncContext *s){ · 789 unmodified lines
790790 if(!s->error_recognition || s->error_count==0 || s->avctx->lowres ||
791791 s->avctx->hwaccel ||
792792 s->avctx->codec->capabilities&CODEC_CAP_HWACCEL_VDPAU ||
793− s->picture_structure != PICT_FRAME || // we dont support ER of field pictures yet, though it should not crash if enabled
793+ s->picture_structure != PICT_FRAME || // we do not support ER of field pictures yet, though it should not crash if enabled
794794 s->error_count==3*s->mb_width*(s->avctx->skip_top + s->avctx->skip_bottom)) return;
795795
796796 if (s->current_picture.f.motion_val[0] == NULL) {
libavcodec/g722enc.c+1−1
@@ -153,7 +153,7 @@ static int g722_encode_trellis(AVCodecContext *avctx, · 152 unmodified lines
153153
154154 for (j = 0; j < frontier && nodes[0][j]; j++) {
155155 /* Only k >> 2 affects the future adaptive state, therefore testing
156− * small steps that don't change k >> 2 is useless, the orignal
156+ * small steps that don't change k >> 2 is useless, the original
157157 * value from encode_low is better than them. Since we step k
158158 * in steps of 4, make sure range is a multiple of 4, so that
159159 * we don't miss the original value from encode_low. */
libavcodec/h264.c+3−3
@@ -2893,7 +2893,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){ · 2892 unmodified lines
28932893 * FIXME: avoiding a memcpy would be nice, but ref handling makes many assumptions
28942894 * about there being no actual duplicates.
28952895 * FIXME: this doesn't copy padding for out-of-frame motion vectors. Given we're
2896− * concealing a lost frame, this probably isn't noticable by comparison, but it should
2896+ * concealing a lost frame, this probably isn't noticeable by comparison, but it should
28972897 * be fixed. */
28982898 if (h->short_ref_count) {
28992899 if (prev) {
@@ -3316,7 +3316,7 @@ static av_always_inline void fill_filter_caches_inter(H264Context *h, MpegEncCon · 416 unmodified lines
33163316
33173317 /**
33183318 *
3319− * @return non zero if the loop filter can be skiped
3319+ * @return non zero if the loop filter can be skipped
33203320 */
33213321 static int fill_filter_caches(H264Context *h, int mb_type){
33223322 MpegEncContext * const s = &h->s;
@@ -3839,7 +3839,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size){ · 516 unmodified lines
38393839 av_log(h->s.avctx, AV_LOG_ERROR, "Invalid mix of idr and non-idr slices");
38403840 return -1;
38413841 }
3842− idr(h); //FIXME ensure we don't loose some frames if there is reordering
3842+ idr(h); // FIXME ensure we don't lose some frames if there is reordering
38433843 case NAL_SLICE:
38443844 init_get_bits(&hx->s.gb, ptr, bit_length);
38453845 hx->intra_gb_ptr=
libavcodec/jfdctint_template.c+1−1
@@ -340,7 +340,7 @@ FUNC(ff_jpeg_fdct_islow)(DCTELEM *data) · 339 unmodified lines
340340
341341 /*
342342 * The secret of DCT2-4-8 is really simple -- you do the usual 1-DCT
343− * on the rows and then, instead of doing even and odd, part on the colums
343+ * on the rows and then, instead of doing even and odd, part on the columns
344344 * you do even part two times.
345345 */
346346 GLOBAL(void)
libavcodec/lpc.h+1−1
@@ -67,7 +67,7 @@ typedef struct LPCContext { · 66 unmodified lines
6767 * Perform autocorrelation on input samples with delay of 0 to lag.
6868 * @param data input samples.
6969 * constraints: no alignment needed, but must have have at
70− * least lag*sizeof(double) valid bytes preceeding it, and
70+ * least lag*sizeof(double) valid bytes preceding it, and
7171 * size must be at least (len+1)*sizeof(double) if data is
7272 * 16-byte aligned or (len+2)*sizeof(double) if data is
7373 * unaligned.
libavcodec/mjpegdec.c+3−3
@@ -1109,9 +1109,9 @@ static int mjpeg_decode_app(MJpegDecodeContext *s) · 1108 unmodified lines
11091109 av_log(s->avctx, AV_LOG_DEBUG, "APPx %8X\n", id);
11101110 }
11111111
1112− /* buggy AVID, it puts EOI only at every 10th frame */
1113− /* also this fourcc is used by non-avid files too, it holds some
1114− informations, but it's always present in AVID creates files */
1112+ /* Buggy AVID, it puts EOI only at every 10th frame. */
1113+ /* Also, this fourcc is used by non-avid files too, it holds some
1114+ information, but it's always present in AVID-created files. */
11151115 if (id == AV_RL32("AVI1"))
11161116 {
11171117 /* structure:
libavcodec/mpegvideo.h+1−1
@@ -127,7 +127,7 @@ typedef struct Picture{ · 126 unmodified lines
127127 int ref_poc[2][2][16]; ///< h264 POCs of the frames used as reference (FIXME need per slice)
128128 int ref_count[2][2]; ///< number of entries in ref_poc (FIXME need per slice)
129129 int mbaff; ///< h264 1 -> MBAFF frame 0-> not MBAFF
130− int field_picture; ///< whether or not the picture was encoded in seperate fields
130+ int field_picture; ///< whether or not the picture was encoded in separate fields
131131
132132 int mb_var_sum; ///< sum of MB variance for current frame
133133 int mc_mb_var_sum; ///< motion compensated MB variance for current frame
libavcodec/proresdec.c+1−1
@@ -559,7 +559,7 @@ static int decode_slice(AVCodecContext *avctx, ProresThreadData *td) · 558 unmodified lines
559559 sf = sf > 128 ? (sf - 96) << 2 : sf;
560560
561561 /* scale quantization matrixes according with slice's scale factor */
562− /* TODO: this can be SIMD-optimized alot */
562+ /* TODO: this can be SIMD-optimized a lot */
563563 if (ctx->qmat_changed || sf != ctx->prev_slice_sf) {
564564 ctx->prev_slice_sf = sf;
565565 for (i = 0; i < 64; i++) {
libavcodec/tscc.c+1−1
@@ -155,7 +155,7 @@ static av_cold int decode_init(AVCodecContext *avctx) · 154 unmodified lines
155155 return -1;
156156 }
157157 c->bpp = avctx->bits_per_coded_sample;
158− // buffer size for RLE 'best' case when 2-byte code preceeds each pixel and there may be padding after it too
158+ // buffer size for RLE 'best' case when 2-byte code precedes each pixel and there may be padding after it too
159159 c->decomp_size = (((avctx->width * c->bpp + 7) >> 3) + 3 * avctx->width + 2) * avctx->height + 2;
160160
161161 /* Allocate decompression buffer */
libavcodec/vaapi_mpeg4.c+1−1
@@ -98,7 +98,7 @@ static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_ · 97 unmodified lines
9898 pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture);
9999
100100 /* Fill in VAIQMatrixBufferMPEG4 */
101− /* Only the first inverse quantisation method uses the weighthing matrices */
101+ /* Only the first inverse quantisation method uses the weighting matrices */
102102 if (pic_param->vol_fields.bits.quant_type) {
103103 iq_matrix = ff_vaapi_alloc_iq_matrix(vactx, sizeof(VAIQMatrixBufferMPEG4));
104104 if (!iq_matrix)
libavcodec/vc1dec.c+3−3
@@ -3536,7 +3536,7 @@ static void vc1_apply_p_loop_filter(VC1Context *v) · 3535 unmodified lines
35363536 vc1_apply_p_v_loop_filter(v, i);
35373537 }
35383538
3539− /* V always preceedes H, therefore we run H one MB before V;
3539+ /* V always precedes H, therefore we run H one MB before V;
35403540 * at the end of a row, we catch up to complete the row */
35413541 if (s->mb_x) {
35423542 for (i = 0; i < 6; i++) {
@@ -3573,7 +3573,7 @@ static int vc1_decode_p_mb(VC1Context *v) · 30 unmodified lines
35733573 int skipped, fourmv;
35743574 int block_cbp = 0, pat, block_tt = 0, block_intra = 0;
35753575
3576− mquant = v->pq; /* Loosy initialization */
3576+ mquant = v->pq; /* lossy initialization */
35773577
35783578 if (v->mv_type_is_raw)
35793579 fourmv = get_bits1(gb);
@@ -4141,7 +4141,7 @@ static void vc1_decode_b_mb(VC1Context *v) · 561 unmodified lines
41414141 int dmv_x[2], dmv_y[2];
41424142 int bmvtype = BMV_TYPE_BACKWARD;
41434143
4144− mquant = v->pq; /* Loosy initialization */
4144+ mquant = v->pq; /* lossy initialization */
41454145 s->mb_intra = 0;
41464146
41474147 if (v->dmb_is_raw)
libavcodec/wmaprodec.c+1−1
@@ -1425,7 +1425,7 @@ static int remaining_bits(WMAProDecodeCtx *s, GetBitContext *gb) · 1424 unmodified lines
14251425 *@param s codec context
14261426 *@param gb bitstream reader context
14271427 *@param len length of the partial frame
1428− *@param append decides wether to reset the buffer or not
1428+ *@param append decides whether to reset the buffer or not
14291429 */
14301430 static void save_bits(WMAProDecodeCtx *s, GetBitContext* gb, int len,
14311431 int append)
libavcodec/wmavoice.c+2−2
@@ -189,7 +189,7 @@ typedef struct { · 188 unmodified lines
189189 * @{
190190 */
191191 int spillover_nbits; ///< number of bits of the previous packet's
192− ///< last superframe preceeding this
192+ ///< last superframe preceding this
193193 ///< packet's first full superframe (useful
194194 ///< for re-synchronization also)
195195 int has_residual_lsps; ///< if set, superframes contain one set of
@@ -1805,7 +1805,7 @@ static int synth_superframe(AVCodecContext *ctx, int *got_frame_ptr) · 1609 unmodified lines
18051805 s->frame.nb_samples = n_samples;
18061806 samples = (float *)s->frame.data[0];
18071807
1808− /* Parse frames, optionally preceeded by per-frame (independent) LSPs. */
1808+ /* Parse frames, optionally preceded by per-frame (independent) LSPs. */
18091809 for (n = 0; n < 3; n++) {
18101810 if (!s->has_residual_lsps) {
18111811 int m;
libavcodec/x86/vc1dsp_yasm.asm+1−1
@@ -227,7 +227,7 @@ section .text · 226 unmodified lines
227227 imul r2, 0x01010101
228228 %endmacro
229229
230−; I dont know why the sign extension is needed...
230+; I do not know why the sign extension is needed...
231231 %macro PSIGNW_SRA_MMX 2
232232 psraw %2, 15
233233 PSIGNW_MMX %1, %2
libavdevice/jack_audio.c+1−1
@@ -271,7 +271,7 @@ static int audio_read_packet(AVFormatContext *context, AVPacket *pkt) · 270 unmodified lines
271271 }
272272 }
273273
274− /* Wait for a packet comming back from process_callback(), if one isn't available yet */
274+ /* Wait for a packet coming back from process_callback(), if one isn't available yet */
275275 timeout.tv_sec = av_gettime() / 1000000 + 2;
276276 if (sem_timedwait(&self->packet_count, &timeout)) {
277277 if (errno == ETIMEDOUT) {
libavdevice/timefilter.h+1−1
@@ -72,7 +72,7 @@ TimeFilter * ff_timefilter_new(double clock_period, double feedback2_factor, dou · 71 unmodified lines
7272 *
7373 * system_time, in seconds, should be the value of the system clock time,
7474 * at (or as close as possible to) the moment the device hardware interrupt
75− * occured (or any other event the device clock raises at the beginning of a
75+ * occurred (or any other event the device clock raises at the beginning of a
7676 * cycle).
7777 *
7878 * @return the filtered time, in seconds
libavformat/avformat.h+4−3
@@ -685,7 +685,8 @@ typedef struct AVStream { · 684 unmodified lines
685685
686686 /**
687687 * last packet in packet_buffer for this stream when muxing.
688− * used internally, NOT PART OF PUBLIC API, dont read or write from outside of libav*
688+ * Used internally, NOT PART OF PUBLIC API, do not read or
689+ * write from outside of libav*
689690 */
690691 struct AVPacketList *last_in_packet_buffer;
691692 #endif
@@ -709,7 +710,7 @@ typedef struct AVStream { · 17 unmodified lines
709710 int codec_info_nb_frames;
710711
711712 /**
712− * Stream informations used internally by av_find_stream_info()
713+ * Stream information used internally by av_find_stream_info()
713714 */
714715 #define MAX_STD_TIMEBASES (60*12+5)
715716 struct {
@@ -877,7 +878,7 @@ typedef struct AVFormatContext { · 161 unmodified lines
877878 /**
878879 * Decoding: duration of the stream, in AV_TIME_BASE fractional
879880 * seconds. Only set this value if you know none of the individual stream
880− * durations and also dont set any of them. This is deduced from the
881+ * durations and also do not set any of them. This is deduced from the
881882 * AVStream values if not set.
882883 */
883884 int64_t duration;
libavformat/flvenc.c+2−2
@@ -361,7 +361,7 @@ static int flv_write_trailer(AVFormatContext *s) · 360 unmodified lines
361361
362362 file_size = avio_tell(pb);
363363
364− /* update informations */
364+ /* update information */
365365 avio_seek(pb, flv->duration_offset, SEEK_SET);
366366 put_amf_double(pb, flv->duration / (double)1000);
367367 avio_seek(pb, flv->filesize_offset, SEEK_SET);
@@ -412,7 +412,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) · 44 unmodified lines
412412 }
413413
414414 if (enc->codec_id == CODEC_ID_H264) {
415− /* check if extradata looks like mp4 formated */
415+ /* check if extradata looks like MP4 */
416416 if (enc->extradata_size > 0 && *(uint8_t*)enc->extradata != 1) {
417417 if (ff_avc_parse_nal_units_buf(pkt->data, &data, &size) < 0)
418418 return -1;
libavformat/id3v2.c+1−1
@@ -142,7 +142,7 @@ static void free_geobtag(void *obj) · 141 unmodified lines
142142 * @param maxread Pointer to maximum number of characters to read from the
143143 * AVIOContext. After execution the value is decremented by the number of bytes
144144 * actually read.
145− * @returns 0 if no error occured, dst is uninitialized on error
145+ * @returns 0 if no error occurred, dst is uninitialized on error
146146 */
147147 static int decode_str(AVFormatContext *s, AVIOContext *pb, int encoding,
148148 uint8_t **dst, int *maxread)
libavformat/img2.c+1−1
@@ -432,7 +432,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) · 431 unmodified lines
432432 (!st->codec->extradata_size &&
433433 AV_RL32(pkt->data+4) != MKTAG('j','P',' ',' '))){ // signature
434434 error:
435− av_log(s, AV_LOG_ERROR, "malformated jpeg2000 codestream\n");
435+ av_log(s, AV_LOG_ERROR, "malformed JPEG 2000 codestream\n");
436436 return -1;
437437 }
438438 }
libavformat/iv8.c+1−1
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424
2525 static int probe(AVProbeData *p)
2626 {
27− // the single file i have starts with that, i dont know if others do too
27+ // the single file I have starts with that, I do not know if others do, too
2828 if( p->buf[0] == 1
2929 && p->buf[1] == 1
3030 && p->buf[2] == 3
libavformat/mms.h+1−1
@@ -33,7 +33,7 @@ typedef struct { · 32 unmodified lines
3333
3434 /** Buffer for outgoing packets. */
3535 /*@{*/
36− uint8_t *write_out_ptr; ///< Pointer for writting the buffer.
36+ uint8_t *write_out_ptr; ///< Pointer for writing the buffer.
3737 uint8_t out_buffer[512]; ///< Buffer for outgoing packet.
3838 /*@}*/
3939
libavformat/movenc.c+1−1
@@ -243,7 +243,7 @@ static int mov_write_ac3_tag(AVIOContext *pb, MOVTrack *track) · 242 unmodified lines
243243
244244 /**
245245 * This function writes extradata "as is".
246− * Extradata must be formated like a valid atom (with size and tag)
246+ * Extradata must be formatted like a valid atom (with size and tag).
247247 */
248248 static int mov_write_extradata_tag(AVIOContext *pb, MOVTrack *track)
249249 {
libavformat/mpegts.c+4−4
@@ -456,7 +456,7 @@ static inline int get16(const uint8_t **pp, const uint8_t *p_end) · 455 unmodified lines
456456 return c;
457457 }
458458
459−/* read and allocate a DVB string preceeded by its length */
459+/* read and allocate a DVB string preceded by its length */
460460 static char *getstr8(const uint8_t **pp, const uint8_t *p_end)
461461 {
462462 int len;
@@ -1672,7 +1672,7 @@ static int handle_packet(MpegTSContext *ts, const uint8_t *packet) · 1209 unmodified lines
16721672 return 0;
16731673 p = packet + 4;
16741674 if (has_adaptation) {
1675− /* skip adapation field */
1675+ /* skip adaptation field */
16761676 p += p[0] + 1;
16771677 }
16781678 /* if past the end of packet, ignore */
@@ -1750,7 +1750,7 @@ static int read_packet(AVFormatContext *s, uint8_t *buf, int raw_packet_size) · 71 unmodified lines
17501750 len = avio_read(pb, buf, TS_PACKET_SIZE);
17511751 if (len != TS_PACKET_SIZE)
17521752 return len < 0 ? len : AVERROR_EOF;
1753− /* check paquet sync byte */
1753+ /* check packet sync byte */
17541754 if (buf[0] != 0x47) {
17551755 /* find a new packet start */
17561756 avio_seek(pb, -TS_PACKET_SIZE, SEEK_CUR);
@@ -1892,7 +1892,7 @@ static int mpegts_read_header(AVFormatContext *s, · 135 unmodified lines
18921892 if (s->iformat == &ff_mpegts_demuxer) {
18931893 /* normal demux */
18941894
1895− /* first do a scaning to get all the services */
1895+ /* first do a scan to get all the services */
18961896 if (pb->seekable && avio_seek(pb, pos, SEEK_SET) < 0)
18971897 av_log(s, AV_LOG_ERROR, "Unable to seek back to the start\n");
18981898
libavformat/mpegtsenc.c+1−1
@@ -944,7 +944,7 @@ static int mpegts_write_packet(AVFormatContext *s, AVPacket *pkt) · 943 unmodified lines
944944 uint32_t state = -1;
945945
946946 if (pkt->size < 5 || AV_RB32(pkt->data) != 0x0000001) {
947− av_log(s, AV_LOG_ERROR, "h264 bitstream malformated, "
947+ av_log(s, AV_LOG_ERROR, "H.264 bitstream malformed, "
948948 "no startcode found, use -vbsf h264_mp4toannexb\n");
949949 return -1;
950950 }
libavformat/mxfenc.c+1−1
@@ -68,7 +68,7 @@ typedef struct { · 67 unmodified lines
6868 int index; ///< index in mxf_essence_container_uls table
6969 const UID *codec_ul;
7070 int order; ///< interleaving order if dts are equal
71− int interlaced; ///< wether picture is interlaced
71+ int interlaced; ///< whether picture is interlaced
7272 int temporal_reordering;
7373 AVRational aspect_ratio; ///< display aspect ratio
7474 int closed_gop; ///< gop is closed, used in mpeg-2 frame parsing
libavformat/rdt.c+1−1
@@ -484,7 +484,7 @@ real_parse_asm_rulebook(AVFormatContext *s, AVStream *orig_st, · 483 unmodified lines
484484 * is set and once for if it isn't. We only read the first because we
485485 * don't care much (that's what the "odd" variable is for).
486486 * Each rule contains a set of one or more statements, optionally
487− * preceeded by a single condition. If there's a condition, the rule
487+ * preceded by a single condition. If there's a condition, the rule
488488 * starts with a '#'. Multiple conditions are merged between brackets,
489489 * so there are never multiple conditions spread out over separate
490490 * statements. Generally, these conditions are bitrate limits (min/max)
libavformat/rtp.h+1−1
@@ -72,7 +72,7 @@ enum CodecID ff_rtp_codec_id(const char *buf, enum AVMediaType codec_type); · 71 unmodified lines
7272 #define RTP_VERSION 2
7373 #define RTP_MAX_SDES 256 /**< maximum text length for SDES */
7474
75−/* RTCP paquets use 0.5 % of the bandwidth */
75+/* RTCP packets use 0.5% of the bandwidth */
7676 #define RTCP_TX_RATIO_NUM 5
7777 #define RTCP_TX_RATIO_DEN 1000
7878
libavformat/udp.c+1−1
@@ -372,7 +372,7 @@ static int udp_open(URLContext *h, const char *uri, int flags) · 371 unmodified lines
372372 goto fail;
373373
374374 /* Follow the requested reuse option, unless it's multicast in which
375− * case enable reuse unless explicitely disabled.
375+ * case enable reuse unless explicitly disabled.
376376 */
377377 if (s->reuse_socket || (s->is_multicast && !reuse_specified)) {
378378 s->reuse_socket = 1;
libavformat/utils.c+2−2
@@ -770,7 +770,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt) · 769 unmodified lines
770770 memset(pd->buf+pd->buf_size, 0, AVPROBE_PADDING_SIZE);
771771
772772 if(av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)){
773− //FIXME we dont reduce score to 0 for the case of running out of buffer space in bytes
773+ //FIXME we do not reduce score to 0 for the case of running out of buffer space in bytes
774774 set_codec_from_probe_data(s, st, pd, st->probe_packets > 0 ? AVPROBE_SCORE_MAX/4 : 0);
775775 if(st->codec->codec_id != CODEC_ID_PROBE){
776776 pd->buf_size=0;
@@ -1081,7 +1081,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, · 304 unmodified lines
10811081 FFSWAP(int64_t, st->pts_buffer[i], st->pts_buffer[i+1]);
10821082 if(pkt->dts == AV_NOPTS_VALUE)
10831083 pkt->dts= st->pts_buffer[0];
1084− if(st->codec->codec_id == CODEC_ID_H264){ //we skiped it above so we try here
1084+ if(st->codec->codec_id == CODEC_ID_H264){ // we skipped it above so we try here
10851085 update_initial_timestamps(s, pkt->stream_index, pkt->dts, pkt->pts); // this should happen on the first packet
10861086 }
10871087 if(pkt->dts > st->cur_dts)
libavutil/eval.h+1−1
@@ -58,7 +58,7 @@ int av_expr_parse_and_eval(double *res, const char *s, · 57 unmodified lines
5858 * Parse an expression.
5959 *
6060 * @param expr a pointer where is put an AVExpr containing the parsed
61− * value in case of successfull parsing, or NULL otherwise.
61+ * value in case of successful parsing, or NULL otherwise.
6262 * The pointed to AVExpr must be freed with av_expr_free() by the user
6363 * when it is not needed anymore.
6464 * @param s expression as a zero terminated string, for example "1+2^3+5*5+sin(2/3)"
libpostproc/postprocess.c+1−1
@@ -909,7 +909,7 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int · 908 unmodified lines
909909 c->yHistogram[i]= width*height/64*15/256;
910910
911911 for(i=0; i<3; i++){
912− //Note: The +17*1024 is just there so i do not have to worry about r/w over the end.
912+ //Note: The +17*1024 is just there so I do not have to worry about r/w over the end.
913913 reallocAlign((void **)&c->tempBlurred[i], 8, stride*mbHeight*16 + 17*1024);
914914 reallocAlign((void **)&c->tempBlurredPast[i], 8, 256*((height+7)&(~7))/2 + 17*1024);//FIXME size
915915 }
libpostproc/postprocess_internal.h+1−1
@@ -100,7 +100,7 @@ typedef struct PPMode{ · 99 unmodified lines
100100
101101 int minAllowedY; ///< for brigtness correction
102102 int maxAllowedY; ///< for brihtness correction
103− float maxClippedThreshold; ///< amount of "black" u r willing to loose to get a brightness corrected picture
103+ float maxClippedThreshold; ///< amount of "black" you are willing to lose to get a brightness-corrected picture
104104
105105 int maxTmpNoise[3]; ///< for Temporal Noise Reducing filter (Maximal sum of abs differences)
106106
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|quantised|quantisation|teh|wont)\b' 'common typos' $*
70+hiegrep '\b(awnser|cant|dont|wont|usefull|successfull|occured|teh|alot|wether|skiped|heigth|informations|colums|loosy|loosing|seperate|preceed)\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