Skip to content

Commit

Permalink
cosmetics: Fix spelling mistakes
Browse files Browse the repository at this point in the history
Signed-off-by: Diego Biurrun <[email protected]>
  • Loading branch information
kodawah authored and DonDiego committed May 4, 2016
1 parent 5c31eaa commit 41ed7ab
Show file tree
Hide file tree
Showing 361 changed files with 962 additions and 964 deletions.
4 changes: 2 additions & 2 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ version 0.7_beta2:
- DPX image encoder
- SMPTE 302M AES3 audio decoder
- ffmpeg no longer quits after the 'q' key is pressed; use 'ctrl+c' instead
- 9bit and 10bit per sample support in the H.264 decoder
- 9 bits and 10 bits per sample support in the H.264 decoder


version 0.7_beta1:
Expand Down Expand Up @@ -732,7 +732,7 @@ version 0.4.9-pre1:
- rate distorted optimal lambda->qp support
- AAC encoding with libfaac
- Sunplus JPEG codec (SP5X) support
- use Lagrange multipler instead of QP for ratecontrol
- use Lagrange multiplier instead of QP for ratecontrol
- Theora/VP3 decoding support
- XA and ADX ADPCM codecs
- export MPEG-2 active display area / pan scan
Expand Down
8 changes: 4 additions & 4 deletions avconv.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* avconv main
* Copyright (c) 2000-2011 The libav developers.
* Copyright (c) 2000-2011 The Libav developers
*
* This file is part of Libav.
*
Expand Down Expand Up @@ -1154,7 +1154,7 @@ int guess_input_channel_layout(InputStream *ist)
return 0;
av_get_channel_layout_string(layout_name, sizeof(layout_name),
dec->channels, dec->channel_layout);
av_log(NULL, AV_LOG_WARNING, "Guessed Channel Layout for Input Stream "
av_log(NULL, AV_LOG_WARNING, "Guessed Channel Layout for Input Stream "
"#%d.%d : %s\n", ist->file_index, ist->st->index, layout_name);
}
return 1;
Expand Down Expand Up @@ -1630,7 +1630,7 @@ static int init_output_bsfs(OutputStream *ost)
for (i = 0; i < ost->nb_bitstream_filters; i++) {
ret = av_bsf_alloc(ost->bitstream_filters[i], &ctx);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error allocating a bistream filter context\n");
av_log(NULL, AV_LOG_ERROR, "Error allocating a bitstream filter context\n");
return ret;
}
ost->bsf_ctx[i] = ctx;
Expand All @@ -1644,7 +1644,7 @@ static int init_output_bsfs(OutputStream *ost)

ret = av_bsf_init(ctx);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error initializing bistream filter: %s\n",
av_log(NULL, AV_LOG_ERROR, "Error initializing bitstream filter: %s\n",
ost->bitstream_filters[i]->name);
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion avconv_opt.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ static int open_input_file(OptionsContext *o, const char *filename)
ic->flags |= AVFMT_FLAG_NONBLOCK;
ic->interrupt_callback = int_cb;

/* open the input file with generic libav function */
/* open the input file with generic Libav function */
err = avformat_open_input(&ic, filename, file_iformat, &o->g->format_opts);
if (err < 0) {
print_error(filename, err);
Expand Down
4 changes: 2 additions & 2 deletions avplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ static int output_picture2(PlayerState *is, AVFrame *src_frame, double pts1, int
}
/* update video clock for next frame */
frame_delay = av_q2d(is->video_dec->time_base);
/* for MPEG2, the frame can be repeated, so we update the
/* For MPEG-2, the frame can be repeated, so we update the
clock accordingly */
frame_delay += src_frame->repeat_pict * (frame_delay * 0.5);
is->video_clock += frame_delay;
Expand Down Expand Up @@ -2123,7 +2123,7 @@ static int stream_component_open(PlayerState *is, int stream_index)
/* init averaging filter */
is->audio_diff_avg_coef = exp(log(0.01) / AUDIO_DIFF_AVG_NB);
is->audio_diff_avg_count = 0;
/* since we do not have a precise anough audio fifo fullness,
/* since we do not have a precise enough audio FIFO fullness,
we correct audio sync only if larger than this threshold */
is->audio_diff_threshold = 2.0 * SDL_AUDIO_BUFFER_SIZE / avctx->sample_rate;

Expand Down
2 changes: 1 addition & 1 deletion avprobe.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static int use_value_sexagesimal_format = 0;
/* globals */
static const OptionDef *options;

/* AVprobe context */
/* avprobe context */
static const char *input_filename;
static AVInputFormat *iformat = NULL;

Expand Down
6 changes: 3 additions & 3 deletions doc/APIchanges
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ API changes, most recent first:

2016-xx-xx - xxxxxxx - lavc 57.15.0 - avcodec.h
Add a new bitstream filtering API working with AVPackets.
Deprecate the old bistream filtering API.
Deprecate the old bitstream filtering API.

2016-xx-xx - xxxxxxx - lavfi 6.3.0 - avfilter.h
Add AVFilterContext.hw_device_ctx.
Expand Down Expand Up @@ -501,7 +501,7 @@ API changes, most recent first:

2013-08-05 - f824535 - lavc 55.13.0 - avcodec.h
Deprecate the bitstream-related members from struct AVVDPAUContext.
The bistream buffers no longer need to be explicitly freed.
The bitstream buffers no longer need to be explicitly freed.

2013-08-05 - 549294f - lavc 55.12.0 - avcodec.h
Deprecate the CODEC_CAP_HWACCEL_VDPAU codec capability. Use CODEC_CAP_HWACCEL
Expand Down Expand Up @@ -591,7 +591,7 @@ lavd 54.0.0, lavfi 3.5.0
* base -- is now stored in AVBufferRef
* reference, type, buffer_hints -- are unnecessary in the new API
* hwaccel_picture_private, owner, thread_opaque -- should not
have been acessed from outside of lavc
have been accessed from outside of lavc
* qscale_table, qstride, qscale_type, mbskip_table, motion_val,
mb_type, dct_coeff, ref_index -- mpegvideo-specific tables,
which are not exported anymore.
Expand Down
4 changes: 2 additions & 2 deletions doc/avconv.texi
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ For DXVA2, this option should contain the number of the display adapter to use.
If this option is not specified, the default adapter is used.

@item qsv
For QSV, this option corresponds to the valus of MFX_IMPL_* . Allowed values
For QSV, this option corresponds to the values of MFX_IMPL_* . Allowed values
are:
@table @option
@item auto
Expand Down Expand Up @@ -886,7 +886,7 @@ avconv -i infile -streamid 0:33 -streamid 1:36 out.ts
@end example

@item -bsf[:@var{stream_specifier}] @var{bitstream_filters} (@emph{output,per-stream})
Set bitstream filters for matching streams. @var{bistream_filters} is
Set bitstream filters for matching streams. @var{bitstream_filters} is
a comma-separated list of bitstream filters. Use the @code{-bsfs} option
to get the list of bitstream filters.
@example
Expand Down
4 changes: 2 additions & 2 deletions doc/avplay.texi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ avplay [options] @file{input_file}
@chapter Description
@c man begin DESCRIPTION

AVplay is a very simple and portable media player using the Libav
avplay is a very simple and portable media player using the Libav
libraries and the SDL library. It is mostly used as a testbed for the
various Libav APIs.
@c man end
Expand Down Expand Up @@ -171,7 +171,7 @@ Seek to percentage in file corresponding to fraction of width.
@ignore
@setfilename avplay
@settitle AVplay media player
@settitle avplay media player
@c man begin SEEALSO
avconv(1), avprobe(1) and the Libav HTML documentation
Expand Down
2 changes: 1 addition & 1 deletion doc/avtools-common-opts.texi
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ are used to precisely specify which stream(s) does a given option belong to.

A stream specifier is a string generally appended to the option name and
separated from it by a colon. E.g. @code{-codec:a:1 ac3} option contains
@code{a:1} stream specifer, which matches the second audio stream. Therefore it
@code{a:1} stream specifier, which matches the second audio stream. Therefore it
would select the ac3 codec for the second audio stream.

A stream specifier can match several stream, the option is then applied to all
Expand Down
2 changes: 1 addition & 1 deletion doc/avutil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ md5.c MD5 Message-Digest Algorithm
rational.c code to perform exact calculations with rational numbers
tree.c generic AVL tree
crc.c generic CRC checksumming code
integer.c 128bit integer math
integer.c 128-bit integer math
lls.c
mathematics.c greatest common divisor, integer sqrt, integer log2, ...
mem.c memory allocation routines with guaranteed alignment
Expand Down
4 changes: 2 additions & 2 deletions doc/developer.texi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ player. See @file{doc/examples/output.c} to use it to generate
audio or video streams.
@end itemize

@section Integrating libav in your program
@section Integrating Libav in your program

Shared libraries should be used whenever is possible in order to reduce
the effort distributors have to pour to support programs and to ensure
Expand Down Expand Up @@ -617,7 +617,7 @@ least make sure that it does not break anything.
If the code changed has already a test present in FATE you should run it,
otherwise it is advised to add it.

Improvements to codec or demuxer might change the FATE results. Make sure
Improvements to a codec or demuxer might change the FATE results. Make sure
to commit the update reference with the change and to explain in the comment
why the expected result changed.

Expand Down
4 changes: 2 additions & 2 deletions doc/encoders.texi
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ Use @var{0} to disable alpha plane coding.
@subsection Speed considerations

In the default mode of operation the encoder has to honor frame constraints
(i.e. not produc frames with size bigger than requested) while still making
output picture as good as possible.
(i.e. not produce frames with a size larger than requested) while still making
the output picture as good as possible.
A frame containing a lot of small details is harder to compress and the encoder
would spend more time searching for appropriate quantizers for each slice.

Expand Down
20 changes: 10 additions & 10 deletions doc/examples/avcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
* libavcodec API use example.
*
* @example avcodec.c
* Note that this library only handles codecs (mpeg, mpeg4, etc...),
* not file formats (avi, vob, etc...). See library 'libavformat' for the
* format handling
* Note that this library only handles codecs (MPEG, MPEG-4, etc...),
* not file formats (AVI, VOB, etc...). See library 'libavformat' for the
* format handling.
*/

#include <stdlib.h>
Expand Down Expand Up @@ -234,7 +234,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)

printf("Audio decoding\n");

/* find the mpeg audio decoder */
/* find the MPEG audio decoder */
codec = avcodec_find_decoder(AV_CODEC_ID_MP2);
if (!codec) {
fprintf(stderr, "codec not found\n");
Expand Down Expand Up @@ -325,7 +325,7 @@ static void video_encode_example(const char *filename)

printf("Video encoding\n");

/* find the mpeg1 video encoder */
/* find the mpeg1video encoder */
codec = avcodec_find_encoder(AV_CODEC_ID_MPEG1VIDEO);
if (!codec) {
fprintf(stderr, "codec not found\n");
Expand Down Expand Up @@ -424,7 +424,7 @@ static void video_encode_example(const char *filename)
}
}

/* add sequence end code to have a real mpeg file */
/* add sequence end code to have a real MPEG file */
fwrite(endcode, 1, sizeof(endcode), f);
fclose(f);

Expand Down Expand Up @@ -465,12 +465,12 @@ static void video_decode_example(const char *outfilename, const char *filename)

av_init_packet(&avpkt);

/* set end of buffer to 0 (this ensures that no overreading happens for damaged mpeg streams) */
/* set end of buffer to 0 (this ensures that no overreading happens for damaged MPEG streams) */
memset(inbuf + INBUF_SIZE, 0, AV_INPUT_BUFFER_PADDING_SIZE);

printf("Video decoding\n");

/* find the mpeg1 video decoder */
/* find the MPEG-1 video decoder */
codec = avcodec_find_decoder(AV_CODEC_ID_MPEG1VIDEO);
if (!codec) {
fprintf(stderr, "codec not found\n");
Expand Down Expand Up @@ -545,9 +545,9 @@ static void video_decode_example(const char *outfilename, const char *filename)
}
}

/* some codecs, such as MPEG, transmit the I and P frame with a
/* Some codecs, such as MPEG, transmit the I- and P-frame with a
latency of one frame. You must do the following to have a
chance to get the last frame of the video */
chance to get the last frame of the video. */
avpkt.data = NULL;
avpkt.size = 0;
len = avcodec_decode_video2(c, picture, &got_picture, &avpkt);
Expand Down
2 changes: 1 addition & 1 deletion doc/examples/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static void add_video_stream(OutputStream *ost, AVFormatContext *oc,
c->gop_size = 12; /* emit one intra frame every twelve frames at most */
c->pix_fmt = STREAM_PIX_FMT;
if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {
/* just for testing, we also add B frames */
/* just for testing, we also add B-frames */
c->max_b_frames = 2;
}
if (c->codec_id == AV_CODEC_ID_MPEG1VIDEO) {
Expand Down
6 changes: 3 additions & 3 deletions doc/fate.texi
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@chapter Introduction

FATE provides a regression testsuite embedded within the Libav build system.
FATE provides a regression test suite embedded within the Libav build system.
It can be run locally and optionally configured to send reports to a web
aggregator and viewer @url{http://fate.libav.org}.

Expand All @@ -24,7 +24,7 @@ and provide new tests when submitting patches to add additional features.
In order to run, FATE needs a large amount of data (samples and references)
that is provided separately from the actual source distribution.

To inform the build system about the testsuite location, pass
To inform the build system about the test suite location, pass
@option{--samples=<path to the samples>} to @command{configure} or set the
@var{SAMPLES} Make variable or the @var{LIBAV_SAMPLES} environment variable
to a suitable value.
Expand Down Expand Up @@ -57,7 +57,7 @@ Specific Makefile targets and Makefile variables are available:
List all fate/regression test targets.

@item fate-rsync
Shortcut to download the fate test samples to the specified testsuite location.
Shortcut to download the fate test samples to the specified test suite location.

@item fate
Run the FATE test suite (requires the fate-suite dataset).
Expand Down
10 changes: 5 additions & 5 deletions doc/filters.texi
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ For more information, see
@section gradfun

Fix the banding artifacts that are sometimes introduced into nearly flat
regions by truncation to 8bit colordepth.
regions by truncation to 8-bit colordepth.
Interpolate the gradients that should go where the bands are, and
dither them.

Expand Down Expand Up @@ -1900,7 +1900,7 @@ libopencv function @code{cvSmooth}.
Overlay one video on top of another.

It takes two inputs and has one output. The first input is the "main"
video on which the second input is overlayed.
video on which the second input is overlaid.

It accepts the following parameters:

Expand Down Expand Up @@ -2327,7 +2327,7 @@ select='not(mod(n\,100))'
# Select only frames contained in the 10-20 time interval
select='gte(t\,10)*lte(t\,20)'
# Select only I frames contained in the 10-20 time interval
# Select only I-frames contained in the 10-20 time interval
select='gte(t\,10)*lte(t\,20)*eq(pict_type\,I)'
# Select frames with a minimum distance of 10 seconds
Expand Down Expand Up @@ -2957,7 +2957,7 @@ number or a valid video frame rate abbreviation. The default value is

The following graph description will generate a red source
with an opacity of 0.2, with size "qcif" and a frame rate of 10
frames per second, which will be overlayed over the source connected
frames per second, which will be overlaid over the source connected
to the pad with identifier "in":

@example
Expand Down Expand Up @@ -3070,7 +3070,7 @@ A '|'-separated list of parameters to pass to the frei0r source.
An example:
@example
# Generate a frei0r partik0l source with size 200x200 and framerate 10
# which is overlayed on the overlay filter main input
# which is overlaid on the overlay filter's main input
frei0r_src=size=200x200:framerate=10:filter_name=partik0l:filter_params=1234 [overlay]; [in][overlay] overlay
@end example

Expand Down
2 changes: 1 addition & 1 deletion doc/git-howto.texi
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ to ensure no local changes still need to be committed and that no local
changes may have thrown off the results of your testing.
@end itemize

Next let the code pass through a full run of our testsuite. Before you do,
Next let the code pass through a full run of our test suite. Before you do,
the command @command{make fate-rsync} will update the test samples. Changes
to the samples set are not very common and commits depending on samples
changes are delayed for at least 24 hours to allow the new samples to
Expand Down
2 changes: 1 addition & 1 deletion doc/indevs.texi
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ The syntax is:
-grab_x @var{x_offset} -grab_y @var{y_offset}
@end example

Set the grabing region coordinates. The are expressed as offset from the top left
Set the grabbing region coordinates. The are expressed as offset from the top left
corner of the X11 window. The default value is 0.

@c man end INPUT DEVICES
2 changes: 1 addition & 1 deletion doc/nut.texi
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ NUT has some variants signaled by using the flags field in its main header.

The BROADCAST variant provides a secondary time reference to facilitate
detecting endpoint latency and network delays.
It assumes all the endpoint clocks are syncronized.
It assumes all the endpoint clocks are synchronized.
To be used in real-time scenarios.

@section PIPE
Expand Down
4 changes: 2 additions & 2 deletions doc/optimization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ If you plan to do non-x86 architecture specific optimizations (SIMD normally),
then take a look in the x86/ directory, as most important functions are
already optimized for MMX.

If you want to do x86 optimizations then you can either try to finetune the
If you want to do x86 optimizations then you can either try to fine-tune the
stuff in the x86 directory or find some other functions in the C source to
optimize, but there aren't many left.

Expand Down Expand Up @@ -163,7 +163,7 @@ general x86 registers (e.g. eax) as well as XMM registers. This last one is
particularly important on Win64, where xmm6-15 are callee-save, and not
restoring their contents leads to undefined results. In external asm (e.g.
yasm), you do this by using:
cglobal functon_name, num_args, num_regs, num_xmm_regs
cglobal function_name, num_args, num_regs, num_xmm_regs
In inline asm, you specify clobbered registers at the end of your asm:
__asm__(".." ::: "%eax").
If gcc is not set to support sse (-msse) it will not accept xmm registers
Expand Down
Loading

0 comments on commit 41ed7ab

Please sign in to comment.