]> git.sesse.net Git - ffmpeg/commitdiff
fix some a/an typos
authorLou Logan <lou@lrcd.com>
Mon, 28 Mar 2016 22:07:47 +0000 (14:07 -0800)
committerLou Logan <lou@lrcd.com>
Mon, 28 Mar 2016 22:13:17 +0000 (14:13 -0800)
Signed-off-by: Lou Logan <lou@lrcd.com>
26 files changed:
doc/Doxyfile
doc/codecs.texi
doc/examples/filtering_audio.c
doc/snow.txt
ffmpeg_filter.c
libavcodec/ass_split.h
libavcodec/avcodec.h
libavcodec/bitstream.c
libavcodec/cpia.c
libavcodec/ituh263dec.c
libavcodec/mpegaudiodec_template.c
libavcodec/mpegvideo.c
libavfilter/graphparser.c
libavfilter/vf_mcdeint.c
libavformat/asfdec_f.c
libavformat/avformat.h
libavformat/movenc.c
libavformat/mxfdec.c
libavformat/oggdec.c
libavformat/utils.c
libavformat/yuv4mpegenc.c
libavutil/avstring.h
libavutil/cpu.h
libavutil/tree.h
libswscale/swscale_internal.h
tools/dvd2concat

index 1ad9f3041ff684ad186532215cce74b2eaa8068d..0c1604e00769087e39a33a6766cc09a4a149530e 100644 (file)
@@ -1429,7 +1429,7 @@ PERL_PATH              = /usr/bin/perl
 #---------------------------------------------------------------------------
 
 # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
-# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# generate an inheritance diagram (in HTML, RTF and LaTeX) for classes with base
 # or super classes. Setting the tag to NO turns the diagrams off. Note that
 # this option is superseded by the HAVE_DOT option below. This is only a
 # fallback. It is recommended to install and use dot, since it yields more
index b481b4a053a0a2228509920d00e9e5f57d707832..ad99fa690632cb57978a3742ae9f3b29bf288971 100644 (file)
@@ -257,7 +257,7 @@ Specify how strictly to follow the standards.
 Possible values:
 @table @samp
 @item very
-strictly conform to a older more strict version of the spec or reference software
+strictly conform to an older more strict version of the spec or reference software
 @item strict
 strictly conform to all the things in the spec no matter what consequences
 @item normal
index 89c80cfd556d8b948d487797e031aa8361d7e28d..6bb24a431dca8b928d1c7541f289f020035f7f4e 100644 (file)
@@ -65,7 +65,7 @@ static int open_input_file(const char *filename)
     /* select the audio stream */
     ret = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_AUDIO, -1, -1, &dec, 0);
     if (ret < 0) {
-        av_log(NULL, AV_LOG_ERROR, "Cannot find a audio stream in the input file\n");
+        av_log(NULL, AV_LOG_ERROR, "Cannot find an audio stream in the input file\n");
         return ret;
     }
     audio_stream_index = ret;
index 9d5778d55d4b29e48eb38f4d2247edc169618de5..bbf28bc6c247fc0c3f0bfa079235156a37638cf6 100644 (file)
@@ -527,7 +527,7 @@ Wavelet Transform:
 ==================
 
 Snow supports 2 wavelet transforms, the symmetric biorthogonal 5/3 integer
-transform and a integer approximation of the symmetric biorthogonal 9/7
+transform and an integer approximation of the symmetric biorthogonal 9/7
 daubechies wavelet.
 
 2D IDWT (inverse discrete wavelet transform)
index 6896a788a0e30c33b56bd4ad34efe9f9d3679600..458f3ae6c549953eb63f7ed7897bd4683d4d16d7 100644 (file)
@@ -656,7 +656,7 @@ int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOu
     DESCRIBE_FILTER_LINK(ofilter, out, 0);
 
     if (!ofilter->ost) {
-        av_log(NULL, AV_LOG_FATAL, "Filter %s has a unconnected output\n", ofilter->name);
+        av_log(NULL, AV_LOG_FATAL, "Filter %s has an unconnected output\n", ofilter->name);
         exit_program(1);
     }
 
index abb6e58f14b4d47d2d0b65d537859a2b35ff846a..30ce77250cd9b1b9d004cf937e72a1d030458518 100644 (file)
@@ -111,7 +111,7 @@ ASSSplitContext *ff_ass_split(const char *buf);
 
 /**
  * Split one or several ASS "Dialogue" lines from a string buffer and store
- * them in a already initialized context.
+ * them in an already initialized context.
  *
  * @param ctx Context previously initialized by ff_ass_split().
  * @param buf String containing the ASS "Dialogue" lines.
index 637984bb26318874cc955a06d4ef204ca8887a2a..eb8b921b72f4fecb11b85dc4f26e92927d563be7 100644 (file)
@@ -91,7 +91,7 @@
  * details.
  *
  * If you add a codec ID to this list, add it so that
- * 1. no value of a existing codec ID changes (that would break ABI),
+ * 1. no value of an existing codec ID changes (that would break ABI),
  * 2. it is as close as possible to similar codecs
  *
  * After adding new codec IDs, do not forget to add an entry to the codec
index 9344175977818bc8738e0a99f685735988821b93..ff9d0135539c69fc4c368ebf9f2954d5c93027c6 100644 (file)
@@ -167,7 +167,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
     int table_size, table_index, index, code_prefix, symbol, subtable_bits;
     int i, j, k, n, nb, inc;
     uint32_t code;
-    volatile VLC_TYPE (* volatile table)[2]; // the double volatile is needed to prevent a internal compiler error in gcc 4.2
+    volatile VLC_TYPE (* volatile table)[2]; // the double volatile is needed to prevent an internal compiler error in gcc 4.2
 
     table_size = 1 << table_nb_bits;
     if (table_nb_bits > 30)
index 6b784b2051762b302919afab2594233037f52298..07cdd503687a554fdda541ee30a7ca5116cf3cc8 100644 (file)
@@ -134,7 +134,7 @@ static int cpia_decode_frame(AVCodecContext *avctx,
         v_end = v + frame->linesize[2] - 1;
 
         if ((i & 1) && header[17] == SUBSAMPLE_420) {
-            /* We are on a odd line and 420 subsample is used.
+            /* We are on an odd line and 420 subsample is used.
              * On this line only Y values are specified, one per pixel.
              */
             for (j = 0; j < linelength - 1; j++) {
index 2e449f8eeb0751c162b323537e5c811032c08797..00be202e62b8036d3e190c5aa6f1ed30230fa531 100644 (file)
@@ -167,7 +167,7 @@ static int h263_decode_gob_header(MpegEncContext *s)
         /* We have a GBSC probably with GSTUFF */
     skip_bits(&s->gb, 16); /* Drop the zeros */
     left= get_bits_left(&s->gb);
-    //MN: we must check the bits left or we might end in a infinite loop (or segfault)
+    //MN: we must check the bits left or we might end in an infinite loop (or segfault)
     for(;left>13; left--){
         if(get_bits1(&s->gb)) break; /* Seek the '1' bit */
     }
@@ -313,7 +313,7 @@ static int h263p_decode_umotion(MpegEncContext * s, int pred)
 }
 
 /**
- * read the next MVs for OBMC. yes this is a ugly hack, feel free to send a patch :)
+ * read the next MVs for OBMC. yes this is an ugly hack, feel free to send a patch :)
  */
 static void preview_obmc(MpegEncContext *s){
     GetBitContext gb= s->gb;
index 5e3fe7e986f6f9482229b31881ce8bb67b91b6d3..6300bb11c09523d85c186cb77a61051b43af1248 100644 (file)
@@ -830,7 +830,7 @@ static void switch_buffer(MPADecodeContext *s, int *pos, int *end_pos,
     }
 }
 
-/* Following is a optimized code for
+/* Following is an optimized code for
             INTFLOAT v = *src
             if(get_bits1(&s->gb))
                 v = -v;
index 236987b3d4eef18cd8bf74a28d7e0b3fa810c459..bc78039c1e6c89799f17876444c6ba393539e7d5 100644 (file)
@@ -772,7 +772,7 @@ static int init_context_frame(MpegEncContext *s)
 
     if (s->h263_pred || s->h263_plus || !s->encoding) {
         /* dc values */
-        // MN: we need these for  error resilience of intra-frames
+        // MN: we need these for error resilience of intra-frames
         FF_ALLOCZ_OR_GOTO(s->avctx, s->dc_val_base, yc_size * sizeof(int16_t), fail);
         s->dc_val[0] = s->dc_val_base + s->b8_stride + 1;
         s->dc_val[1] = s->dc_val_base + y_size + s->mb_stride + 1;
@@ -781,13 +781,13 @@ static int init_context_frame(MpegEncContext *s)
             s->dc_val_base[i] = 1024;
     }
 
-    /* which mb is a intra block */
+    /* which mb is an intra block */
     FF_ALLOCZ_OR_GOTO(s->avctx, s->mbintra_table, mb_array_size, fail);
     memset(s->mbintra_table, 1, mb_array_size);
 
     /* init macroblock skip table */
     FF_ALLOCZ_OR_GOTO(s->avctx, s->mbskip_table, mb_array_size + 2, fail);
-    // Note the + 1 is for  a quicker mpeg4 slice_end detection
+    // Note the + 1 is for a quicker mpeg4 slice_end detection
 
     return ff_mpeg_er_init(s);
 fail:
@@ -1224,7 +1224,7 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx)
     }
 
     if (s->current_picture_ptr && !s->current_picture_ptr->f->buf[0]) {
-        // we already have a unused image
+        // we already have an unused image
         // (maybe it was set before reading the header)
         pic = s->current_picture_ptr;
     } else {
index d9f40d698dc17876628775c6684bb75cf37b67b5..8d15b5dfe0e853b4c64f4154d1573ab4969df1fe 100644 (file)
@@ -354,7 +354,7 @@ static int parse_outputs(const char **buf, AVFilterInOut **curr_inputs,
             av_freep(&match);
             av_freep(&input);
         } else {
-            /* Not in the list, so add the first input as a open_output */
+            /* Not in the list, so add the first input as an open_output */
             input->name = name;
             insert_inout(open_outputs, input);
         }
index ea32a240bb48fad2a6d375ce281a283c7c0c946f..050a8341d9b545a0e9da890be614fd52154efb5a 100644 (file)
@@ -38,7 +38,7 @@
  *
  * Only past frames are used, we should ideally use future frames too,
  * something like filtering the whole movie in forward and then
- * backward direction seems like a interesting idea but the current
+ * backward direction seems like an interesting idea but the current
  * filter framework is FAR from supporting such things.
  *
  * Combining the motion compensated image with the input image also is
index 3ee0fcd473370b031509fccaefd7eafbe5857b9a..711341328d2696210b3ec147bf46b26b6668f3f8 100644 (file)
@@ -828,7 +828,7 @@ static int asf_read_header(AVFormatContext *s)
         } else if (!ff_guidcmp(&g, &ff_asf_ext_stream_header)) {
             asf_read_ext_stream_properties(s, gsize);
 
-            // there could be a optional stream properties object to follow
+            // there could be an optional stream properties object to follow
             // if so the next iteration will pick it up
             continue;
         } else if (!ff_guidcmp(&g, &ff_asf_head1_guid)) {
index ccb8033f9a95eb5a1806613295f79772c385ba3d..5e918a04c3ef0194579284ad37adf35a1854aaca 100644 (file)
@@ -2449,7 +2449,7 @@ int av_write_frame(AVFormatContext *s, AVPacket *pkt);
 int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt);
 
 /**
- * Write a uncoded frame to an output media file.
+ * Write an uncoded frame to an output media file.
  *
  * The frame must be correctly interleaved according to the container
  * specification; if not, then av_interleaved_write_frame() must be used.
@@ -2460,7 +2460,7 @@ int av_write_uncoded_frame(AVFormatContext *s, int stream_index,
                            AVFrame *frame);
 
 /**
- * Write a uncoded frame to an output media file.
+ * Write an uncoded frame to an output media file.
  *
  * If the muxer supports it, this function makes it possible to write an AVFrame
  * structure directly, without encoding it into a packet.
index 9af44e3b71f0a31dead36f011ac38ac73c4ce64e..efaac36ba6b746bbf3da735f4d7abecc1fdd3901 100644 (file)
@@ -2523,7 +2523,7 @@ static int mov_write_edts_tag(AVIOContext *pb, MOVMuxContext *mov,
     } else {
         /* Avoid accidentally ending up with start_ct = -1 which has got a
          * special meaning. Normally start_ct should end up positive or zero
-         * here, but use FFMIN in case dts is a small positive integer
+         * here, but use FFMIN in case dts is a small positive integer
          * rounded to 0 when represented in MOV_TIMESCALE units. */
         av_assert0(av_rescale_rnd(start_dts, MOV_TIMESCALE, track->timescale, AV_ROUND_DOWN) <= 0);
         start_ct  = -FFMIN(start_dts, 0);
index f1495e6e4115232af30119dcca441a2cd4a66af3..40b4d79996de4ecda589ad3a4de8f822e8fae83e 100644 (file)
@@ -2608,7 +2608,7 @@ static int mxf_handle_missing_index_segment(MXFContext *mxf)
     if (mxf->op != OPAtom)
         return 0;
 
-    /* TODO: support raw video without a index if they exist */
+    /* TODO: support raw video without an index if they exist */
     if (s->nb_streams != 1 || s->streams[0]->codec->codec_type != AVMEDIA_TYPE_AUDIO || !is_pcm(s->streams[0]->codec->codec_id))
         return 0;
 
index 2d99b4af25c22d3140138732c9919c1f94fea0c5..9f1e0abb313751f081bdcaff9fa1b190a676bb06 100644 (file)
@@ -864,7 +864,7 @@ static int64_t ogg_read_timestamp(AVFormatContext *s, int stream_index,
            && !ogg_packet(s, &i, &pstart, &psize, pos_arg)) {
         if (i == stream_index) {
             struct ogg_stream *os = ogg->streams + stream_index;
-            // Do not trust the last timestamps of a ogm video
+            // Do not trust the last timestamps of an ogm video
             if (    (os->flags & OGG_FLAG_EOS)
                 && !(os->flags & OGG_FLAG_BOS)
                 && os->codec == &ff_ogm_video_codec)
index 67d4d1b70aa6487fb433a0f656e85b775945f536..3bd2df30138b8e032c663c4e8065b148a8c49cc4 100644 (file)
@@ -3124,7 +3124,7 @@ void ff_rfps_calculate(AVFormatContext *ic)
         if (st->codec->codec_type != AVMEDIA_TYPE_VIDEO)
             continue;
         // the check for tb_unreliable() is not completely correct, since this is not about handling
-        // a unreliable/inexact time base, but a time base that is finer than necessary, as e.g.
+        // an unreliable/inexact time base, but a time base that is finer than necessary, as e.g.
         // ipmovie.c produces.
         if (tb_unreliable(st->codec) && st->info->duration_count > 15 && st->info->duration_gcd > FFMAX(1, st->time_base.den/(500LL*st->time_base.num)) && !st->r_frame_rate.num)
             av_reduce(&st->r_frame_rate.num, &st->r_frame_rate.den, st->time_base.den, st->time_base.num * st->info->duration_gcd, INT_MAX);
index 23d2eda45c7223b3efe034f8e9c76c74dae25081..033badb0af391d1a7639669ad7d51de1bb077a70 100644 (file)
@@ -267,7 +267,7 @@ static int yuv4_write_header(AVFormatContext *s)
     case AV_PIX_FMT_YUV422P16:
     case AV_PIX_FMT_YUV444P16:
         if (s->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
-            av_log(s, AV_LOG_ERROR, "'%s' is not a official yuv4mpegpipe pixel format. "
+            av_log(s, AV_LOG_ERROR, "'%s' is not an official yuv4mpegpipe pixel format. "
                    "Use '-strict -1' to encode to this pixel format.\n",
                    av_get_pix_fmt_name(s->streams[0]->codec->pix_fmt));
             return AVERROR(EINVAL);
index 15b04babef40e7cf088cfa24a24081b572e379e0..dd2876990f2602c621e8d27536ca2877b367f757 100644 (file)
@@ -156,7 +156,7 @@ static inline size_t av_strnlen(const char *s, size_t len)
 char *av_asprintf(const char *fmt, ...) av_printf_format(1, 2);
 
 /**
- * Convert a number to a av_malloced string.
+ * Convert a number to an av_malloced string.
  */
 char *av_d2str(double d);
 
index cc4e30c4cde3ab5eb8796f5264c3a3d40db685f1..4bff16714a380f2975cf8c539896c77efb119b60 100644 (file)
@@ -70,7 +70,7 @@
 /**
  * Return the flags which specify extensions supported by the CPU.
  * The returned value is affected by av_force_cpu_flags() if that was used
- * before. So av_get_cpu_flags() can easily be used in a application to
+ * before. So av_get_cpu_flags() can easily be used in an application to
  * detect the enabled cpu flags.
  */
 int av_get_cpu_flags(void);
index e1aefaa9f605c2007e60b955635b53806d7b78e8..9a9e11b92c5f49782c5c7bbdefef4deccfef1fad 100644 (file)
@@ -120,8 +120,8 @@ void av_tree_destroy(struct AVTreeNode *t);
 /**
  * Apply enu(opaque, &elem) to all the elements in the tree in a given range.
  *
- * @param cmp a comparison function that returns < 0 for a element below the
- *            range, > 0 for a element above the range and == 0 for a
+ * @param cmp a comparison function that returns < 0 for an element below the
+ *            range, > 0 for an element above the range and == 0 for an
  *            element inside the range
  *
  * @note The cmp function should use the same ordering used to construct the
index f0bab78ee77215381446e3b8b5206a64b636ab4f..450805a58bd059f159e6dbb6db65a084c9cc484e 100644 (file)
@@ -960,7 +960,7 @@ typedef struct SwsPlane
 } SwsPlane;
 
 /**
- * Struct which defines a slice of an image to be scaled or a output for
+ * Struct which defines a slice of an image to be scaled or an output for
  * a scaled slice.
  * A slice can also be used as intermediate ring buffer for scaling steps.
  */
index 02371e099700ec666c84b1b7b58f81b12df6cd3b..8effee86b9f3e181cfe828ebc36e29754b4e01f3 100755 (executable)
@@ -36,7 +36,7 @@ I<path/to/dvd/structure> is the path to the DVD structure hierarchy; it
 normally contains a directory named B<VIDEO_TS>. It must not be encrypted
 with CSS.
 
-I<file.concat> is the output file. It can be used a input to ffmpeg.
+I<file.concat> is the output file. It can be used as an input to ffmpeg.
 It will require the B<-safe 0> option.
 
 =cut