]> git.sesse.net Git - ffmpeg/commitdiff
miscellaneous typo fixes
authorDiego Biurrun <diego@biurrun.de>
Wed, 19 Dec 2012 17:48:21 +0000 (18:48 +0100)
committerDiego Biurrun <diego@biurrun.de>
Thu, 20 Dec 2012 23:18:34 +0000 (00:18 +0100)
51 files changed:
configure
doc/Doxyfile
doc/developer.texi
doc/indevs.texi
doc/rate_distortion.txt
doc/viterbi.txt
libavcodec/4xm.c
libavcodec/aacpsy.c
libavcodec/ac3dec.c
libavcodec/ac3enc.c
libavcodec/acelp_filters.h
libavcodec/avcodec.h
libavcodec/bitstream.c
libavcodec/eac3dec.c
libavcodec/ffv1dec.c
libavcodec/flicvideo.c
libavcodec/g726.c
libavcodec/h264_direct.c
libavcodec/indeo3data.h
libavcodec/lagarith.c
libavcodec/libfdk-aacenc.c
libavcodec/libtheoraenc.c
libavcodec/mpeg4videoenc.c
libavcodec/parser.c
libavcodec/pngenc.c
libavcodec/ratecontrol.c
libavcodec/resample.c
libavcodec/rv10.c
libavcodec/shorten.c
libavcodec/thread.h
libavcodec/vda_h264.c
libavcodec/vorbisdec.c
libavcodec/vp8dsp.h
libavcodec/wmaprodec.c
libavdevice/dv1394.h
libavformat/avformat.h
libavformat/aviobuf.c
libavformat/dvenc.c
libavformat/hls.c
libavformat/hlsproto.c
libavformat/http.h
libavformat/rtpdec_jpeg.c
libavformat/smoothstreamingenc.c
libavformat/spdifenc.c
libavformat/wtv.c
libavformat/xmv.c
libavresample/avresample-test.c
libswscale/ppc/yuv2yuv_altivec.c
libswscale/swscale.c
tests/audiogen.c
tools/patcheck

index f099118b665f803d33fa618aef35524f04e0e11b..c357b535aac69daf543df8c5660288310a49d998 100755 (executable)
--- a/configure
+++ b/configure
@@ -1305,7 +1305,7 @@ HAVE_LIST="
     xmm_clobbers
 "
 
-# options emitted with CONFIG_ prefix but not available on command line
+# options emitted with CONFIG_ prefix but not available on the command line
 CONFIG_EXTRA="
     aandcttables
     ac3dsp
index 1a37021c5b659c4de25725bc48edf31abec50e6b..3b2236cb434be60df8b51e5328802d3f8fea62cb 100644 (file)
@@ -288,7 +288,7 @@ TYPEDEF_HIDES_STRUCT   = NO
 # causing a significant performance penality.
 # If the system has enough physical memory increasing the cache will improve the
 # performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
+# a logarithmic scale so increasing the size by one will roughly double the
 # memory usage. The cache size is given by this formula:
 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
 # corresponding to a cache size of 2^16 = 65536 symbols
index aff28b845e24cde1b539466b13ab26b2255255bc..682a239abb2d32f308cd6596f238dc81c726e57f 100644 (file)
@@ -201,7 +201,7 @@ For exported names, each library has its own prefixes. Just check the existing
 code and name accordingly.
 @end itemize
 
-@subsection Miscellanous conventions
+@subsection Miscellaneous conventions
 @itemize @bullet
 @item
 fprintf and printf are forbidden in libavformat and libavcodec,
index b0ba6ac9f36a1c36a189ef442ec30e2ace757c51..868329799f0eff7a6c2dc13801ef1eab1fce666c 100644 (file)
@@ -300,7 +300,7 @@ The filename passed as input has the syntax:
 
 @var{hostname}:@var{display_number}.@var{screen_number} specifies the
 X11 display name of the screen to grab from. @var{hostname} can be
-ommitted, and defaults to "localhost". The environment variable
+omitted, and defaults to "localhost". The environment variable
 @env{DISPLAY} contains the default display name.
 
 @var{x_offset} and @var{y_offset} specify the offsets of the grabbed
index a7d2c878b27340b2d39bfe630c427b6b2d5b6341..e9711c2d5ca36fb4091af0f9cb1064ffdd83560b 100644 (file)
@@ -23,7 +23,7 @@ Let's consider the problem of minimizing:
 
 rate is the filesize
 distortion is the quality
-lambda is a fixed value choosen as a tradeoff between quality and filesize
+lambda is a fixed value chosen as a tradeoff between quality and filesize
 Is this equivalent to finding the best quality for a given max
 filesize? The answer is yes. For each filesize limit there is some lambda
 factor for which minimizing above will get you the best quality (using your
index 5362a0b76564e38ba22ad12a0e0c393e08a0dc8c..97825462ccf0f36f41e44b159c3ff3ee73b1f961 100644 (file)
@@ -85,8 +85,8 @@ here are some edges we could choose from:
      /        \
     O-----2--4--O
 
-Finding the new best pathes and scores for each point of our new column is
-trivial given we know the previous column best pathes and scores:
+Finding the new best paths and scores for each point of our new column is
+trivial given we know the previous column best paths and scores:
 
     O-----0-----8
      \
index f78a0a21b26314b6bd7f0fe1bbc66941c22d170c..66149cc3e73553f92b8ba5f705843789d717dee4 100644 (file)
@@ -796,7 +796,7 @@ static int decode_frame(AVCodecContext *avctx, void *data,
                                      cfrm->size + data_size + FF_INPUT_BUFFER_PADDING_SIZE);
         // explicit check needed as memcpy below might not catch a NULL
         if (!cfrm->data) {
-            av_log(f->avctx, AV_LOG_ERROR, "realloc falure");
+            av_log(f->avctx, AV_LOG_ERROR, "realloc failure");
             return -1;
         }
 
index 42db471428fda0ba14851ba442c1bb7e192c47ec..e4b4405144a1a42e83a19e636c851ab1617133ed 100644 (file)
@@ -592,7 +592,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
     for (w = 0; w < wi->num_windows*16; w += 16) {
         AacPsyBand *bands = &pch->band[w];
 
-        //5.4.2.3 "Spreading" & 5.4.3 "Spreaded Energy Calculation"
+        /* 5.4.2.3 "Spreading" & 5.4.3 "Spread Energy Calculation" */
         spread_en[0] = bands[0].energy;
         for (g = 1; g < num_bands; g++) {
             bands[g].thr   = FFMAX(bands[g].thr,    bands[g-1].thr * coeffs[g].spread_hi[0]);
@@ -612,7 +612,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
                 band->thr = FFMAX(PSY_3GPP_RPEMIN*band->thr, FFMIN(band->thr,
                                   PSY_3GPP_RPELEV*pch->prev_band[w+g].thr_quiet));
 
-            /* 5.6.1.3.1 "Prepatory steps of the perceptual entropy calculation" */
+            /* 5.6.1.3.1 "Preparatory steps of the perceptual entropy calculation" */
             pe += calc_pe_3gpp(band);
             a  += band->pe_const;
             active_lines += band->active_lines;
index acefe4164485136c1f0f3daf8eedb5320927ace4..f15bfa2a07b8f49221dcb894884c82d5ca6b249c 100644 (file)
@@ -546,7 +546,7 @@ static void decode_transform_coeffs(AC3DecodeContext *s, int blk)
     for (ch = 1; ch <= s->channels; ch++) {
         /* transform coefficients for full-bandwidth channel */
         decode_transform_coeffs_ch(s, blk, ch, &m);
-        /* tranform coefficients for coupling channel come right after the
+        /* transform coefficients for coupling channel come right after the
            coefficients for the first coupled channel*/
         if (s->channel_in_cpl[ch])  {
             if (!got_cplchan) {
index 6d038ef9142e22a5b9b20a0e588dd601a9374299..c0acc648500a68abdea2fb9c0d9d15d7fa7511b1 100644 (file)
@@ -659,7 +659,7 @@ static void count_frame_bits_fixed(AC3EncodeContext *s)
      *   bit allocation parameters do not change between blocks
      *   no delta bit allocation
      *   no skipped data
-     *   no auxilliary data
+     *   no auxiliary data
      *   no E-AC-3 metadata
      */
 
index b8715d266fbf9163bf6ee22fdcbeea3a932bd660..6a9ebd943e5aa15e04bd636966f8d0993c4dba9b 100644 (file)
@@ -32,7 +32,7 @@
  * the coefficients are scaled by 2^15.
  * This array only contains the right half of the filter.
  * This filter is likely identical to the one used in G.729, though this
- * could not be determined from the original comments with certainity.
+ * could not be determined from the original comments with certainty.
  */
 extern const int16_t ff_acelp_interp_filter[61];
 
index 29e3701e45573b918769260921e1d1cbbf90faa1..d12c72b74c941c40f71b67e91b7cf3195beeeaa1 100644 (file)
@@ -2292,7 +2292,7 @@ typedef struct AVCodecContext {
 
     /**
      * ratecontrol qmin qmax limiting method
-     * 0-> clipping, 1-> use a nice continous function to limit qscale wthin qmin/qmax.
+     * 0-> clipping, 1-> use a nice continuous function to limit qscale wthin qmin/qmax.
      * - encoding: Set by user.
      * - decoding: unused
      */
index eec2f6dcb271f5236e831c38293364fa54684d7d..2c8692a79de71d1df8ce0dcceef6f6c540e2285f 100644 (file)
@@ -169,7 +169,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
         table[i][0] = -1; //codes
     }
 
-    /* first pass: map codes and compute auxillary table sizes */
+    /* first pass: map codes and compute auxiliary table sizes */
     for (i = 0; i < nb_codes; i++) {
         n = codes[i].bits;
         code = codes[i].code;
index 639e061f5a4944ca21dbc3efab92d28e9b2917cf..3a80cb146966faebf7ffc46c61ea805c0ffe2aef 100644 (file)
@@ -491,7 +491,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
     s->skip_syntax       = get_bits1(gbc);
     parse_spx_atten_data = get_bits1(gbc);
 
-    /* coupling strategy occurance and coupling use per block */
+    /* coupling strategy occurrence and coupling use per block */
     num_cpl_blocks = 0;
     if (s->channel_mode > 1) {
         for (blk = 0; blk < s->num_blocks; blk++) {
index b1dec7de3f93b55ef66ed4dea7b04940ac7e297c..72f255cad166e7bae83a93fbb1195dfa98b4780a 100644 (file)
@@ -824,7 +824,7 @@ static int ffv1_decode_frame(AVCodecContext *avctx, void *data,
     } else {
         if (!f->key_frame_ok) {
             av_log(avctx, AV_LOG_ERROR,
-                   "Cant decode non keyframe without valid keyframe\n");
+                   "Cannot decode non-keyframe without valid keyframe\n");
             return AVERROR_INVALIDDATA;
         }
         p->key_frame = 0;
index 02bfc75da426de6a5062702fc1b0b055b707510b..d2cc6cdb4131d72b1e5a5921c75542ec614eafdd 100644 (file)
@@ -581,7 +581,7 @@ static int flic_decode_frame_15_16BPP(AVCodecContext *avctx,
                 }
 
                 /* Now FLX is strange, in that it is "byte" as opposed to "pixel" run length compressed.
-                 * This does not give us any good oportunity to perform word endian conversion
+                 * This does not give us any good opportunity to perform word endian conversion
                  * during decompression. So if it is required (i.e., this is not a LE target, we do
                  * a second pass over the line here, swapping the bytes.
                  */
index 3e313b9752d235bcc44d3f23686bd65db29596a2..dbe9e022405dab12918597552850dcbb1d101ba7 100644 (file)
@@ -34,7 +34,7 @@
 /**
  * G.726 11bit float.
  * G.726 Standard uses rather odd 11bit floating point arithmentic for
- * numerous occasions. It's a mistery to me why they did it this way
+ * numerous occasions. It's a mystery to me why they did it this way
  * instead of simply using 32bit integer arithmetic.
  */
 typedef struct Float11 {
index bf444958bfa1635d9000ce2b5ec7f84a2f4bb386..2306b975b5b72a67cc0a7758a10cb4321c072059 100644 (file)
@@ -86,7 +86,7 @@ static void fill_colmap(H264Context *h, int map[2][16+32], int list, int field,
 
             if     (!interl)
                 poc |= 3;
-            else if( interl && (poc&3) == 3) //FIXME store all MBAFF references so this isnt needed
+            else if( interl && (poc&3) == 3) // FIXME: store all MBAFF references so this is not needed
                 poc= (poc&~3) + rfield + 1;
 
             for(j=start; j<end; j++){
index 2ef8ea74bd6f7ce766a3977a1ab2af5f733351d4..28c9bb606176b91a7bd5db7d664ddc4c2bbd43cf 100644 (file)
 
 /**
  * Pack two delta values (a,b) into one 16bit word
- * according with endianess of the host machine.
+ * according with endianness of the host machine.
  */
 #if HAVE_BIGENDIAN
 #define PD(a,b) (((a) << 8) + (b))
@@ -282,7 +282,7 @@ static const int16_t delta_tab_3_5[79]  = { TAB_3_5 };
 
 /**
  * Pack four delta values (a,a,b,b) into one 32bit word
- * according with endianess of the host machine.
+ * according with endianness of the host machine.
  */
 #if HAVE_BIGENDIAN
 #define PD(a,b) (((a) << 24) + ((a) << 16) + ((b) << 8) + (b))
index 7d7a1a7ff19ed75f9f95ceba6686f719f98143db..33dd8b0c53d52e41ca387230aaa80d92271487a7 100644 (file)
@@ -198,8 +198,8 @@ static int lag_read_prob_header(lag_rac *rac, GetBitContext *gb)
             }
             /* Comment from reference source:
              * if (b & 0x80 == 0) {     // order of operations is 'wrong'; it has been left this way
-             *                          // since the compression change is negligable and fixing it
-             *                          // breaks backwards compatibilty
+             *                          // since the compression change is negligible and fixing it
+             *                          // breaks backwards compatibility
              *      b =- (signed int)b;
              *      b &= 0xFF;
              * } else {
index 85ccb101483f0702fde8d115f1815e7a23f6dd3e..00397d58ed26f137449f65b85cee11a3f1d29c5f 100644 (file)
@@ -257,7 +257,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
         }
         if ((err = aacEncoder_SetParam(s->handle, AACENC_BANDWIDTH,
                                        avctx->cutoff)) != AACENC_OK) {
-            av_log(avctx, AV_LOG_ERROR, "Unable to set the encoder bandwith to %d: %s\n",
+            av_log(avctx, AV_LOG_ERROR, "Unable to set the encoder bandwidth to %d: %s\n",
                    avctx->cutoff, aac_get_error(err));
             goto error;
         }
index e57310ac33d7c130b2354a9b64d70852d3f3da3a..f20fabb8d6d9c745aff5acb6f027768d54ad7563 100644 (file)
@@ -338,7 +338,7 @@ static int encode_frame(AVCodecContext* avc_context, AVPacket *pkt,
     memcpy(pkt->data, o_packet.packet, o_packet.bytes);
 
     // HACK: assumes no encoder delay, this is true until libtheora becomes
-    // multithreaded (which will be disabled unless explictly requested)
+    // multithreaded (which will be disabled unless explicitly requested)
     pkt->pts = pkt->dts = frame->pts;
     avc_context->coded_frame->key_frame = !(o_packet.granulepos & h->keyframe_mask);
     if (avc_context->coded_frame->key_frame)
index b145eb229bfad732fe923d07aaefc38a960947bc..986cba62fa7f7b5c072d0615786b4248fac39ca4 100644 (file)
@@ -89,7 +89,7 @@ static inline int get_block_rate(MpegEncContext * s, DCTELEM block[64], int bloc
  * @param[in,out] block MB coefficients, these will be restored
  * @param[in] dir ac prediction direction for each 8x8 block
  * @param[out] st scantable for each 8x8 block
- * @param[in] zigzag_last_index index refering to the last non zero coefficient in zigzag order
+ * @param[in] zigzag_last_index index referring to the last non zero coefficient in zigzag order
  */
 static inline void restore_ac_coeffs(MpegEncContext * s, DCTELEM block[6][64], const int dir[6], uint8_t *st[6], const int zigzag_last_index[6])
 {
@@ -120,7 +120,7 @@ static inline void restore_ac_coeffs(MpegEncContext * s, DCTELEM block[6][64], c
  * @param[in,out] block MB coefficients, these will be updated if 1 is returned
  * @param[in] dir ac prediction direction for each 8x8 block
  * @param[out] st scantable for each 8x8 block
- * @param[out] zigzag_last_index index refering to the last non zero coefficient in zigzag order
+ * @param[out] zigzag_last_index index referring to the last non zero coefficient in zigzag order
  */
 static inline int decide_ac_pred(MpegEncContext * s, DCTELEM block[6][64], const int dir[6], uint8_t *st[6], int zigzag_last_index[6])
 {
index 0767a3495978f5a148a3c49e13eb9cfd142f018a..6e755f6b75c0d9f73a5eb0bb18c2bfc6bcfaf997 100644 (file)
@@ -96,7 +96,7 @@ void ff_fetch_timestamp(AVCodecParserContext *s, int off, int remove){
         if (   s->cur_offset + off >= s->cur_frame_offset[i]
             && (s->frame_offset < s->cur_frame_offset[i] ||
               (!s->frame_offset && !s->next_frame_offset)) // first field/frame
-            //check is disabled  because mpeg-ts doesnt send complete PES packets
+            // check disabled since MPEG-TS does not send complete PES packets
             && /*s->next_frame_offset + off <*/  s->cur_frame_end[i]){
             s->dts= s->cur_frame_dts[i];
             s->pts= s->cur_frame_pts[i];
index 00a800c795b3f2d2c6c75ad94b4d1d7c2312c7ce..b20a6d6d467864c037d1e1ee158c9ccef8a6fb3e 100644 (file)
@@ -367,7 +367,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
         int pass;
 
         for(pass = 0; pass < NB_PASSES; pass++) {
-            /* NOTE: a pass is completely omited if no pixels would be
+            /* NOTE: a pass is completely omitted if no pixels would be
                output */
             pass_row_size = ff_png_pass_row_size(pass, bits_per_pixel, avctx->width);
             if (pass_row_size > 0) {
index 2cb5eeaefe589ebc3fdce18a12ade43e42fa21e7..e0b6e9bf0bed8d5455585ba3d89f41492f98d6fe 100644 (file)
@@ -799,7 +799,7 @@ static int init_pass2(MpegEncContext *s)
     AVCodecContext *a= s->avctx;
     int i, toobig;
     double fps= 1/av_q2d(s->avctx->time_base);
-    double complexity[5]={0,0,0,0,0};   // aproximate bits at quant=1
+    double complexity[5]={0,0,0,0,0};   // approximate bits at quant=1
     uint64_t const_bits[5]={0,0,0,0,0}; // quantizer independent bits
     uint64_t all_const_bits;
     uint64_t all_available_bits= (uint64_t)(s->bit_rate*(double)rcc->num_entries/fps);
index 20d7078113f16775e267a86f5bd984f450b718c9..1b3bb834f3b73c82c48e76f3e251025284572f26 100644 (file)
@@ -350,7 +350,7 @@ int audio_resample(ReSampleContext *s, short *output, short *input, int nb_sampl
         if (av_audio_convert(s->convert_ctx[1], obuf, ostride,
                              ibuf, istride, nb_samples1 * s->output_channels) < 0) {
             av_log(s->resample_context, AV_LOG_ERROR,
-                   "Audio sample format convertion failed\n");
+                   "Audio sample format conversion failed\n");
             return 0;
         }
     }
index 73af3622e6be0bdec614d9708a22c6935a469493..9239cf7d94f0e37da103162357da02f4acc11965 100644 (file)
@@ -706,7 +706,7 @@ static int rv10_decode_frame(AVCodecContext *avctx,
             *got_frame = 1;
             ff_print_debug_info(s, pict);
         }
-        s->current_picture_ptr= NULL; //so we can detect if frame_end wasnt called (find some nicer solution...)
+        s->current_picture_ptr= NULL; // so we can detect if frame_end was not called (find some nicer solution...)
     }
 
     return avpkt->size;
index fad69b8d08ad9ec6ffadf69c8f281bf7dc762190..1dc010f441d57de1f2f97b2ee9cca53fbd56c103 100644 (file)
@@ -528,7 +528,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data,
             /* get Rice code for residual decoding */
             if (cmd != FN_ZERO) {
                 residual_size = get_ur_golomb_shorten(&s->gb, ENERGYSIZE);
-                /* this is a hack as version 0 differed in defintion of get_sr_golomb_shorten */
+                /* This is a hack as version 0 differed in the definition
+                 * of get_sr_golomb_shorten(). */
                 if (s->version == 0)
                     residual_size--;
             }
index 782c03cbcf962444ad2be48fe0653b6b1ca10abd..99b0ce146a4761901da35151e09149e00fba7b84 100644 (file)
@@ -43,7 +43,7 @@ void ff_thread_flush(AVCodecContext *avctx);
  * Returns the next available frame in picture. *got_picture_ptr
  * will be 0 if none is available.
  * The return value on success is the size of the consumed packet for
- * compatiblity with avcodec_decode_video2(). This means the decoder
+ * compatibility with avcodec_decode_video2(). This means the decoder
  * has to consume the full packet.
  *
  * Parameters are the same as avcodec_decode_video2().
index 2a78aac61a8a0fc542947faec545f79622430560..34fcd3c6e1c475b65ab6f8c59acf82686e52fca4 100644 (file)
@@ -281,7 +281,7 @@ int ff_vda_create_decoder(struct vda_context *vda_ctx,
 #endif
 
     /* Each VCL NAL in the bistream sent to the decoder
-     * is preceeded by a 4 bytes length header.
+     * is preceded by a 4 bytes length header.
      * Change the avcC atom header if needed, to signal headers of 4 bytes. */
     if (extradata_size >= 4 && (extradata[4] & 0x03) != 0x03) {
         uint8_t *rw_extradata;
index b30e614c2f4b8d6c576f38603952ea7c15fa2985..aac9019ed683724fd63a9a2f2baa7bfb68eaf918 100644 (file)
@@ -1233,7 +1233,7 @@ static int vorbis_floor1_decode(vorbis_context *vc,
         if (highroom < lowroom) {
             room = highroom * 2;
         } else {
-            room = lowroom * 2;   // SPEC mispelling
+            room = lowroom * 2;   // SPEC misspelling
         }
         if (val) {
             floor1_flag[low_neigh_offs]  = 1;
index 62cc0109899b96106bf203bed4d68ba33b66ed78..bce0062c51d617c3007ce66607e4976f1fd8cfd3 100644 (file)
@@ -73,7 +73,7 @@ typedef struct VP8DSPContext {
      * second dimension: 0 if no vertical interpolation is needed;
      *                   1 4-tap vertical interpolation filter (my & 1)
      *                   2 6-tap vertical interpolation filter (!(my & 1))
-     * third dimension: same as second dimention, for horizontal interpolation
+     * third dimension: same as second dimension, for horizontal interpolation
      * so something like put_vp8_epel_pixels_tab[width>>3][2*!!my-(my&1)][2*!!mx-(mx&1)](..., mx, my)
      */
     vp8_mc_func put_vp8_epel_pixels_tab[3][3][3];
index 321c25d9f192817fb90ad5ebcd185a69632758d0..e19c3d36b965410847cf0e65e442063d15f50267 100644 (file)
@@ -533,7 +533,7 @@ static int decode_tilehdr(WMAProDecodeCtx *s)
     int c;
 
     /* Should never consume more than 3073 bits (256 iterations for the
-     * while loop when always the minimum amount of 128 samples is substracted
+     * while loop when always the minimum amount of 128 samples is subtracted
      * from missing samples in the 8 channel case).
      * 1 + BLOCK_MAX_SIZE * MAX_CHANNELS / BLOCK_MIN_SIZE * (MAX_CHANNELS  + 4)
      */
@@ -1089,7 +1089,7 @@ static int decode_subframe(WMAProDecodeCtx *s)
     s->channels_for_cur_subframe = 0;
     for (i = 0; i < s->avctx->channels; i++) {
         const int cur_subframe = s->channel[i].cur_subframe;
-        /** substract already processed samples */
+        /** subtract already processed samples */
         total_samples -= s->channel[i].decoded_samples;
 
         /** and count if there are multiple subframes that match our profile */
index fc4df2403299c68b29daa15d42f7728d32a16486..9710ff56ea9d1e54766831ce57a5c1300a933778 100644 (file)
    where copy_DV_frame() reads or writes on the dv1394 file descriptor
    (read/write mode) or copies data to/from the mmap ringbuffer and
    then calls ioctl(DV1394_SUBMIT_FRAMES) to notify dv1394 that new
-   frames are availble (mmap mode).
+   frames are available (mmap mode).
 
    reset_dv1394() is called in the event of a buffer
    underflow/overflow or a halt in the DV stream (e.g. due to a 1394
index 51635c4b84cb69941837ed00f11ffcb7287b9f52..149b66f1c9d50a07c99d4efd79faae0edecc331e 100644 (file)
@@ -1532,7 +1532,7 @@ enum AVCodecID av_guess_codec(AVOutputFormat *fmt, const char *short_name,
  * @ingroup libavf
  * @{
  *
- * Miscelaneous utility functions related to both muxing and demuxing
+ * Miscellaneous utility functions related to both muxing and demuxing
  * (or neither).
  */
 
index b762d10a2a8cfa09f8a1b0115820989360873f3f..0da1e0579b499299858c8c56732f731884b170f4 100644 (file)
@@ -368,7 +368,7 @@ static void fill_buffer(AVIOContext *s)
     int max_buffer_size = s->max_packet_size ?
                           s->max_packet_size : IO_BUFFER_SIZE;
 
-    /* can't fill the buffer without read_packet, just set EOF if appropiate */
+    /* can't fill the buffer without read_packet, just set EOF if appropriate */
     if (!s->read_packet && s->buf_ptr >= s->buf_end)
         s->eof_reached = 1;
 
index 27a444ea1ffefec35fbe7faafc0d3a1184d8543b..a991cc6b0c23978b78b2cd4f70cb77c297010398 100644 (file)
@@ -47,9 +47,9 @@ struct DVMuxContext {
     AVFifoBuffer     *audio_data[2]; /* FIFO for storing excessive amounts of PCM */
     int               frames;        /* current frame number */
     int64_t           start_time;    /* recording start time */
-    int               has_audio;     /* frame under contruction has audio */
-    int               has_video;     /* frame under contruction has video */
-    uint8_t           frame_buf[DV_MAX_FRAME_SIZE]; /* frame under contruction */
+    int               has_audio;     /* frame under construction has audio */
+    int               has_video;     /* frame under construction has video */
+    uint8_t           frame_buf[DV_MAX_FRAME_SIZE]; /* frame under construction */
 };
 
 static const int dv_aaux_packs_dist[12][9] = {
index 1f6b7d56ed35b49d652e7ee9733aa7102a085301..4c0e0c0b63358c355f1a98ca61732957580242a5 100644 (file)
@@ -42,7 +42,7 @@
  * An apple http stream consists of a playlist with media segment files,
  * played sequentially. There may be several playlists with the same
  * video content, in different bandwidth variants, that are played in
- * parallel (preferrably only one bandwidth variant at a time). In this case,
+ * parallel (preferably only one bandwidth variant at a time). In this case,
  * the user supplied the url to a main playlist that only lists the variant
  * playlists.
  *
index 179bdf1967a5059d26e99218aa2609b9c1a37e2e..b750501c4d1bef84297e8f27edde50bd74cec0c2 100644 (file)
@@ -36,7 +36,7 @@
  * An apple http stream consists of a playlist with media segment files,
  * played sequentially. There may be several playlists with the same
  * video content, in different bandwidth variants, that are played in
- * parallel (preferrably only one bandwidth variant at a time). In this case,
+ * parallel (preferably only one bandwidth variant at a time). In this case,
  * the user supplied the url to a main playlist that only lists the variant
  * playlists.
  *
index 3579ad745ac6e6de1c870f05afc098fb5161d0b1..f0d9d4aea8f7ab59e8dc01931839cc0137b2edb6 100644 (file)
@@ -40,7 +40,7 @@ void ff_http_init_auth_state(URLContext *dest, const URLContext *src);
  *
  * @param h pointer to the ressource
  * @param uri uri used to perform the request
- * @return a negative value if an error condition occured, 0
+ * @return a negative value if an error condition occurred, 0
  * otherwise
  */
 int ff_http_do_new_request(URLContext *h, const char *uri);
index 9f73f7d5dcfd94495a78314c8fa5d3caeff7e61c..25bb88d0d1b7c838174ff23b19f8f58e6d479553 100644 (file)
@@ -370,7 +370,7 @@ static int jpeg_parse_packet(AVFormatContext *ctx, PayloadContext *jpeg,
         /* Prepare the JPEG packet. */
         if ((ret = ff_rtp_finalize_packet(pkt, &jpeg->frame, st->index)) < 0) {
             av_log(ctx, AV_LOG_ERROR,
-                   "Error occured when getting frame buffer.\n");
+                   "Error occurred when getting frame buffer.\n");
             return ret;
         }
 
index 1ed675a27212cb94a6d6a5545bcaaef94e9397b4..d26af0564b422a80d27730a461458b86d0023a58 100644 (file)
@@ -51,7 +51,7 @@ typedef struct {
     char dirname[1024];
     uint8_t iobuf[32768];
     URLContext *out;  // Current output stream where all output is written
-    URLContext *out2; // Auxillary output stream where all output also is written
+    URLContext *out2; // Auxiliary output stream where all output is also written
     URLContext *tail_out; // The actual main output stream, if we're currently seeked back to write elsewhere
     int64_t tail_pos, cur_pos, cur_start_pos;
     int packets_written;
index 77af92e1f33ab600c58f951108c0b190a738703e..dcdabae1de3649488e8ab52da22ba2c1e83f9524 100644 (file)
@@ -339,7 +339,7 @@ static int spdif_header_mpeg(AVFormatContext *s, AVPacket *pkt)
         ctx->data_type  = mpeg_data_type [version & 1][layer];
         ctx->pkt_offset = spdif_mpeg_pkt_offset[version & 1][layer];
     }
-    // TODO Data type dependant info (normal/karaoke, dynamic range control)
+    // TODO Data type dependent info (normal/karaoke, dynamic range control)
     return 0;
 }
 
index 7bb421b0ce29cf0b632b81ca4ac90af6f02df4d8..2e5d39cff2e4865d858fe4f7f7ca1de3a7790600 100644 (file)
@@ -221,7 +221,7 @@ static AVIOContext * wtvfile_open_sector(int first_sector, uint64_t length, int
     }
     wf->length = length;
 
-    /* seek to intial sector */
+    /* seek to initial sector */
     wf->position = 0;
     if (avio_seek(s->pb, (int64_t)wf->sectors[0] << WTV_SECTOR_BITS, SEEK_SET) < 0) {
         av_free(wf->sectors);
index 5041c571c3738bacc5deef47189d0f615aabab1a..3f926eff9c04d9a1ab6c668b0774694e8deaebec 100644 (file)
@@ -298,7 +298,7 @@ static int xmv_process_packet_header(AVFormatContext *s)
      * short for every audio track. But as playing around with XMV files with
      * ADPCM audio showed, taking the extra 4 bytes from the audio data gives
      * you either completely distorted audio or click (when skipping the
-     * remaining 68 bytes of the ADPCM block). Substracting 4 bytes for every
+     * remaining 68 bytes of the ADPCM block). Subtracting 4 bytes for every
      * audio track from the video data works at least for the audio. Probably
      * some alignment thing?
      * The video data has (always?) lots of padding, so it should work out...
index ab49e489cdebed5648966a9d652bfbe0bd442d80..81e9bf0f50684be5e4dc907dfa3b4c3d90f122e1 100644 (file)
@@ -100,7 +100,7 @@ static void audiogen(AVLFG *rnd, void **data, enum AVSampleFormat sample_fmt,
         a += M_PI * 1000.0 * 2.0 / sample_rate;
     }
 
-    /* 1 second of varing frequency between 100 and 10000 Hz */
+    /* 1 second of varying frequency between 100 and 10000 Hz */
     a = 0;
     for (i = 0; i < 1 * sample_rate && k < nb_samples; i++, k++) {
         v = sin(a) * 0.30;
index e68cccf6a76fc941a7d9f209bbe75f510727987b..5aa1820351b5ec2ca74d9b94365935206d7a12e1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * AltiVec-enhanced yuv-to-yuv convertion routines.
+ * AltiVec-enhanced yuv-to-yuv conversion routines.
  *
  * Copyright (C) 2004 Romain Dolbeau <romain@dolbeau.org>
  * based on the equivalent C code in swscale.c
index c1920de0a6420ee78e4d66940cdc7c45876c4f72..dac8b37468965c8231be770d9221085262c84595 100644 (file)
@@ -163,7 +163,7 @@ static void hScale8To19_c(SwsContext *c, int16_t *_dst, int dstW,
     }
 }
 
-// FIXME all pal and rgb srcFormats could do this convertion as well
+// FIXME all pal and rgb srcFormats could do this conversion as well
 // FIXME all scalers more complex than bilinear could do half of this transform
 static void chrRangeToJpeg_c(int16_t *dstU, int16_t *dstV, int width)
 {
index acb380da507da92baf99fcb844e0cfc1e8d68624..4fa465638a0f76ff5a28b803e908983d7eaf5363 100644 (file)
@@ -189,7 +189,7 @@ int main(int argc, char **argv)
         a += (1000 * FRAC_ONE) / sample_rate;
     }
 
-    /* 1 second of varing frequency between 100 and 10000 Hz */
+    /* 1 second of varying frequency between 100 and 10000 Hz */
     a = 0;
     for (i = 0; i < 1 * sample_rate; i++) {
         v = (int_cos(a) * 10000) >> FRAC_BITS;
index 78ca8246f72fd30c2fa6a6254fb03698eb3bec67..d22cf3c5aad81a69a2b5274af994a19e35a0ef20 100755 (executable)
@@ -19,7 +19,7 @@ echo This tool is intended to help a human check/review patches it is very far f
 echo being free of false positives and negatives, its output are just hints of what
 echo may or may not be bad. When you use it and it misses something or detects
 echo something wrong, fix it and send a patch to the libav-devel mailing list.
-echo License:GPL Autor: Michael Niedermayer
+echo License:GPL Author: Michael Niedermayer
 
 ERE_PRITYP='(unsigned *|)(char|short|long|int|long *int|short *int|void|float|double|(u|)int(8|16|32|64)_t)'
 ERE_TYPES='(const|static|av_cold|inline| *)*('$ERE_PRITYP'|[a-zA-Z][a-zA-Z0-9_]*)[* ]{1,}[a-zA-Z][a-zA-Z0-9_]*'
@@ -158,7 +158,7 @@ cat $* | tr '\n' '@' | $EGREP --color=always -o '[^a-zA-Z0-9_]([a-zA-Z0-9_]*) *=
 cat $TMP | tr '@' '\n'
 
 
-# doesnt work
+# does not work
 #cat $* | tr '\n' '@' | $EGREP -o '[^a-zA-Z_0-9]([a-zA-Z][a-zA-Z_0-9]*) *=[^=].*\1' | $EGREP -o '[^a-zA-Z_0-9]([a-zA-Z][a-zA-Z_0-9]*) *=[^=].*\1 *=[^=]'  >$TMP && printf "\nPossibly written 2x before read\n"
 #cat $TMP | tr '@' '\n'