Hi, attached patch fixes some spelling errors found with codespell.
Best regards, Andreas
>From cf8d6a77911b61e0f02a36704a08362636f9a433 Mon Sep 17 00:00:00 2001 From: Andreas Cadhalpun <andreas.cadhal...@googlemail.com> Date: Sat, 12 Jul 2014 20:31:47 +0200 Subject: [PATCH] fix spelling errors --- compat/avisynth/avisynth_c.h | 8 ++++---- compat/avisynth/avxsynth_c.h | 8 ++++---- doc/filters.texi | 2 +- libavcodec/tiff_common.h | 10 +++++----- libavfilter/x86/yadif-16.asm | 2 +- libavutil/downmix_info.h | 2 +- libavutil/dynarray.h | 2 +- libavutil/frame.h | 2 +- libavutil/utils.c | 2 +- libswresample/swresample_internal.h | 2 +- libswscale/swscale_internal.h | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/compat/avisynth/avisynth_c.h b/compat/avisynth/avisynth_c.h index 448493b..cc72b19 100644 --- a/compat/avisynth/avisynth_c.h +++ b/compat/avisynth/avisynth_c.h @@ -198,7 +198,7 @@ typedef struct AVS_ScriptEnvironment AVS_ScriptEnvironment; // AVS_VideoInfo // -// AVS_VideoInfo is layed out identicly to VideoInfo +// AVS_VideoInfo is laid out identically to VideoInfo typedef struct AVS_VideoInfo { int width, height; // width=0 means no video unsigned fps_numerator, fps_denominator; @@ -367,7 +367,7 @@ AVSC_INLINE int avs_is_same_colorspace(AVS_VideoInfo * x, AVS_VideoInfo * y) // to be reused. The instances are deleted when the corresponding AVS // file is closed. -// AVS_VideoFrameBuffer is layed out identicly to VideoFrameBuffer +// AVS_VideoFrameBuffer is laid out identically to VideoFrameBuffer // DO NOT USE THIS STRUCTURE DIRECTLY typedef struct AVS_VideoFrameBuffer { BYTE * data; @@ -381,7 +381,7 @@ typedef struct AVS_VideoFrameBuffer { // VideoFrame holds a "window" into a VideoFrameBuffer. -// AVS_VideoFrame is layed out identicly to IVideoFrame +// AVS_VideoFrame is laid out identically to IVideoFrame // DO NOT USE THIS STRUCTURE DIRECTLY typedef struct AVS_VideoFrame { volatile long refcount; @@ -499,7 +499,7 @@ AVSC_INLINE AVS_VideoFrame * avs_copy_frame(AVS_VideoFrame * f) // avisynth_c API don't use the AVS_Value directly. Use the helper // functions below. -// AVS_Value is layed out identicly to AVSValue +// AVS_Value is laid out identically to AVSValue typedef struct AVS_Value AVS_Value; struct AVS_Value { short type; // 'a'rray, 'c'lip, 'b'ool, 'i'nt, 'f'loat, 's'tring, 'v'oid, or 'l'ong diff --git a/compat/avisynth/avxsynth_c.h b/compat/avisynth/avxsynth_c.h index b20f460..0a7b569 100644 --- a/compat/avisynth/avxsynth_c.h +++ b/compat/avisynth/avxsynth_c.h @@ -154,7 +154,7 @@ typedef struct AVS_ScriptEnvironment AVS_ScriptEnvironment; // AVS_VideoInfo // -// AVS_VideoInfo is layed out identicly to VideoInfo +// AVS_VideoInfo is laid out identically to VideoInfo typedef struct AVS_VideoInfo { int width, height; // width=0 means no video unsigned fps_numerator, fps_denominator; @@ -311,7 +311,7 @@ AVSC_INLINE int avs_is_same_colorspace(AVS_VideoInfo * x, AVS_VideoInfo * y) // to be reused. The instances are deleted when the corresponding AVS // file is closed. -// AVS_VideoFrameBuffer is layed out identicly to VideoFrameBuffer +// AVS_VideoFrameBuffer is laid out identically to VideoFrameBuffer // DO NOT USE THIS STRUCTURE DIRECTLY typedef struct AVS_VideoFrameBuffer { unsigned char * data; @@ -325,7 +325,7 @@ typedef struct AVS_VideoFrameBuffer { // VideoFrame holds a "window" into a VideoFrameBuffer. -// AVS_VideoFrame is layed out identicly to IVideoFrame +// AVS_VideoFrame is laid out identically to IVideoFrame // DO NOT USE THIS STRUCTURE DIRECTLY typedef struct AVS_VideoFrame { int refcount; @@ -448,7 +448,7 @@ AVSC_INLINE AVS_VideoFrame * avs_copy_frame(AVS_VideoFrame * f) // avisynth_c API don't use the AVS_Value directly. Use the helper // functions below. -// AVS_Value is layed out identicly to AVSValue +// AVS_Value is laid out identically to AVSValue typedef struct AVS_Value AVS_Value; struct AVS_Value { short type; // 'a'rray, 'c'lip, 'b'ool, 'i'nt, 'f'loat, 's'tring, 'v'oid, or 'l'ong diff --git a/doc/filters.texi b/doc/filters.texi index b736b3f..f4f66f4 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3324,7 +3324,7 @@ The option available in this filter is: @item cycle Specify the length of the window over which the judder repeats. -Accepts any interger greater than 1. Useful values are: +Accepts any integer greater than 1. Useful values are: @table @samp @item 4 diff --git a/libavcodec/tiff_common.h b/libavcodec/tiff_common.h index 16c9e50..03558c3 100644 --- a/libavcodec/tiff_common.h +++ b/libavcodec/tiff_common.h @@ -67,16 +67,16 @@ static const uint16_t ifd_tags[] = { */ int ff_tis_ifd(unsigned tag); -/** Reads a short from the bytestream using given endianess. */ +/** Reads a short from the bytestream using given endianness. */ unsigned ff_tget_short(GetByteContext *gb, int le); -/** Reads a long from the bytestream using given endianess. */ +/** Reads a long from the bytestream using given endianness. */ unsigned ff_tget_long(GetByteContext *gb, int le); -/** Reads a double from the bytestream using given endianess. */ +/** Reads a double from the bytestream using given endianness. */ double ff_tget_double(GetByteContext *gb, int le); -/** Reads a byte from the bytestream using given endianess. */ +/** Reads a byte from the bytestream using given endianness. */ unsigned ff_tget(GetByteContext *gb, int type, int le); /** Returns an allocated string containing count @@ -136,7 +136,7 @@ int ff_tadd_string_metadata(int count, const char *name, GetByteContext *gb, int le, AVDictionary **metadata); /** Decodes a TIFF header from the input bytestream - * and sets the endianess in *le and the offset to + * and sets the endianness in *le and the offset to * the first IFD in *ifd_offset accordingly. */ int ff_tdecode_header(GetByteContext *gb, int *le, int *ifd_offset); diff --git a/libavfilter/x86/yadif-16.asm b/libavfilter/x86/yadif-16.asm index a65da89..79d127d 100644 --- a/libavfilter/x86/yadif-16.asm +++ b/libavfilter/x86/yadif-16.asm @@ -139,7 +139,7 @@ SECTION .text ; This version of CHECK2 has 3 fewer instructions on sets older than SSE4 but I ; am not sure whether it is any faster. A rewrite or refactor of the filter -; code should make it possible to eliminate the move intruction at the end. It +; code should make it possible to eliminate the move instruction at the end. It ; exists to satisfy the expectation that the "score" values are in m1. ; %macro CHECK2 0 diff --git a/libavutil/downmix_info.h b/libavutil/downmix_info.h index 2fb9387..221cf5b 100644 --- a/libavutil/downmix_info.h +++ b/libavutil/downmix_info.h @@ -100,7 +100,7 @@ typedef struct AVDownmixInfo { * @param frame the frame for which the side data is to be obtained or created * * @return the AVDownmixInfo structure to be edited by the caller, or NULL if - * the sturcture cannot be allocated. + * the structure cannot be allocated. */ AVDownmixInfo *av_downmix_info_update_side_data(AVFrame *frame); diff --git a/libavutil/dynarray.h b/libavutil/dynarray.h index 00b19bc..4947d93 100644 --- a/libavutil/dynarray.h +++ b/libavutil/dynarray.h @@ -35,7 +35,7 @@ * the type of the size * @param av_elt_size size of the elements in the array, in bytes * @param av_array pointer to the array, must be a lvalue - * @param av_size size of the array, must be an interger lvalue + * @param av_size size of the array, must be an integer lvalue * @param av_success statement to execute on success; at this point, the * size variable is not yet incremented * @param av_failure statement to execute on failure; if this happens, the diff --git a/libavutil/frame.h b/libavutil/frame.h index c23e5af..a39c8d0 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -214,7 +214,7 @@ typedef struct AVFrame { int64_t pkt_pts; /** - * DTS copied from the AVPacket that triggered returning this frame. (if frame threading isnt used) + * DTS copied from the AVPacket that triggered returning this frame. (if frame threading isn't used) * This is also the Presentation time of this AVFrame calculated from * only AVPacket.dts values without pts values. */ diff --git a/libavutil/utils.c b/libavutil/utils.c index 6c9b493..aafd3b9 100644 --- a/libavutil/utils.c +++ b/libavutil/utils.c @@ -40,7 +40,7 @@ unsigned avutil_version(void) av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); av_assert0(HAVE_MMX2 == HAVE_MMXEXT); - av_assert0(((size_t)-1) > 0); // C gurantees this but if false on a platform we care about revert at least b284e1ffe343d6697fb950d1ee517bafda8a9844 + av_assert0(((size_t)-1) > 0); // C guarantees this but if false on a platform we care about revert at least b284e1ffe343d6697fb950d1ee517bafda8a9844 if (av_sat_dadd32(1, 2) != 5) { av_log(NULL, AV_LOG_FATAL, "Libavutil has been build with a broken binutils, please upgrade binutils and rebuild\n"); diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h index 9edfdc8..be4b321 100644 --- a/libswresample/swresample_internal.h +++ b/libswresample/swresample_internal.h @@ -62,7 +62,7 @@ struct DitherContext { float ns_coeffs[NS_TAPS]; ///< Noise shaping filter coefficients float ns_errors[SWR_CH_MAX][2*NS_TAPS]; AudioData noise; ///< noise used for dithering - AudioData temp; ///< temporary storage when writing into the input buffer isnt possible + AudioData temp; ///< temporary storage when writing into the input buffer isn't possible int output_sample_bits; ///< the number of used output bits, needed to scale dither correctly }; diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 8cf4317..8d2d56a 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -429,7 +429,7 @@ typedef struct SwsContext { #define UV_OFF_BYTE "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+56" #define DITHER16 "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+64" #define DITHER32 "11*8+4*4*"AV_STRINGIFY(MAX_FILTER_SIZE)"*3+80" -#define DITHER32_INT (11*8+4*4*MAX_FILTER_SIZE*3+80) // value equal to above, used for checking that the struct hasnt been changed by mistake +#define DITHER32_INT (11*8+4*4*MAX_FILTER_SIZE*3+80) // value equal to above, used for checking that the struct hasn't been changed by mistake DECLARE_ALIGNED(8, uint64_t, redDither); DECLARE_ALIGNED(8, uint64_t, greenDither); -- 2.0.1
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel