Skip to content

Commit 0d988f0

Browse files
kianmengWyattBlue
authored andcommitted
Fix typos
Found via `codespell -L wel,domin,ehr,bu,setts`
1 parent 5f33896 commit 0d988f0

12 files changed

Lines changed: 14 additions & 14 deletions

File tree

AUTHORS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
github = github_map.get(email)
9595

9696
# The '-' vs '*' is so that Sphinx treats them as different lists, and
97-
# introduces a gap bettween them.
97+
# introduces a gap between them.
9898
if github:
9999
print(
100100
"%s %s <%s>; `@%s <https://github.com/%s>`_"

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ Build:
559559
Other:
560560

561561
- Incremental improvements to docs and tests.
562-
- Examples directory will now always be runnable as-is, and embeded in the docs (in a copy-pastable form).
562+
- Examples directory will now always be runnable as-is, and embedded in the docs (in a copy-pastable form).
563563

564564

565565
v6.0.0

av/container/core.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class Flags(Flag):
130130
non_block: "Do not block when reading packets from input." = lib.AVFMT_FLAG_NONBLOCK
131131
ign_dts: "Ignore DTS on frames that contain both DTS & PTS." = lib.AVFMT_FLAG_IGNDTS
132132
no_fillin: "Do not infer any values from other values, just return what is stored in the container." = lib.AVFMT_FLAG_NOFILLIN
133-
no_parse: "Do not use AVParsers, you also must set AVFMT_FLAG_NOFILLIN as the fillin code works on frames and no parsing -> no frames. Also seeking to frames can not work if parsing to find frame boundaries has been disabled." = lib.AVFMT_FLAG_NOPARSE
133+
no_parse: "Do not use AVParsers, you also must set AVFMT_FLAG_NOFILLIN as the fill in code works on frames and no parsing -> no frames. Also seeking to frames can not work if parsing to find frame boundaries has been disabled." = lib.AVFMT_FLAG_NOPARSE
134134
no_buffer: "Do not buffer frames when possible." = lib.AVFMT_FLAG_NOBUFFER
135135
custom_io: "The caller has supplied a custom AVIOContext, don't avio_close() it." = lib.AVFMT_FLAG_CUSTOM_IO
136136
discard_corrupt: "Discard frames marked corrupted." = lib.AVFMT_FLAG_DISCARD_CORRUPT

av/container/input.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ cdef class InputContainer(Container):
241241
242242
In most cases, the defaults of ``backwards = True`` and ``any_frame = False``
243243
are the best course of action, followed by you demuxing/decoding to
244-
the position that you want. This is becase to properly decode video frames
244+
the position that you want. This is because to properly decode video frames
245245
you need to start from the previous keyframe.
246246
247247
.. seealso:: :ffmpeg:`avformat_seek_file` for discussion of the flags.

av/error.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,15 @@ ErrorType = EnumType("ErrorType", (EnumItem, ), {"__module__": __name__}, [x[:2]
267267

268268

269269
for enum in ErrorType:
270-
# Mimick the errno module.
270+
# Mimic the errno module.
271271
globals()[enum.name] = enum
272272
if enum.value == c_PYAV_STASHED_ERROR:
273273
enum.strerror = PYAV_STASHED_ERROR_message
274274
else:
275275
enum.strerror = lib.av_err2str(-enum.value)
276276

277277

278-
# Mimick the builtin exception types.
278+
# Mimic the builtin exception types.
279279
# See https://www.python.org/dev/peps/pep-3151/#new-exception-classes
280280
# Use the named ones we have, otherwise default to OSError for anything in errno.
281281

av/sidedata/motionvectors.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MotionVectors(_MotionVectors, Sequence):
5555
cdef class MotionVector:
5656
def __init__(self, sentinel, _MotionVectors parent, int index):
5757
if sentinel is not _cinit_bypass_sentinel:
58-
raise RuntimeError("cannot manually instatiate MotionVector")
58+
raise RuntimeError("cannot manually instantiate MotionVector")
5959
self.parent = parent
6060
cdef lib.AVMotionVector *base = <lib.AVMotionVector*>parent.ptr.data
6161
self.ptr = base + index

av/sidedata/sidedata.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cdef int get_display_rotation(Frame frame):
6363
cdef class SideData(Buffer):
6464
def __init__(self, sentinel, Frame frame, int index):
6565
if sentinel is not _cinit_bypass_sentinel:
66-
raise RuntimeError("cannot manually instatiate SideData")
66+
raise RuntimeError("cannot manually instantiate SideData")
6767
self.frame = frame
6868
self.ptr = frame.ptr.side_data[index]
6969
self.metadata = wrap_dictionary(self.ptr.metadata)

av/video/codeccontext.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ cdef class VideoCodecContext(CodecContext):
217217
:type: int
218218
"""
219219
if self.is_decoder:
220-
raise RuntimeError("Cannnot access 'gop_size' as a decoder")
220+
raise RuntimeError("Cannot access 'gop_size' as a decoder")
221221
return self.ptr.gop_size
222222

223223
@gop_size.setter
224224
def gop_size(self, int value):
225225
if self.is_decoder:
226-
raise RuntimeError("Cannnot access 'gop_size' as a decoder")
226+
raise RuntimeError("Cannot access 'gop_size' as a decoder")
227227
self.ptr.gop_size = value
228228

229229
@property

av/video/format.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ cdef class VideoFormatComponent:
158158

159159
@property
160160
def is_luma(self):
161-
"""Is this compoment a luma channel?"""
161+
"""Is this component a luma channel?"""
162162
return self.index == 0 and (
163163
self.format.ptr.nb_components == 1 or
164164
self.format.ptr.nb_components == 2 or

docs/api/video.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Enums
113113
.. autoclass:: av.video.reformatter.Colorspace
114114

115115
Wraps the ``SWS_CS_*`` flags. There is a bit of overlap in
116-
these names which comes from FFmpeg and backards compatibility.
116+
these names which comes from FFmpeg and backwards compatibility.
117117

118118
.. enumtable:: av.video.reformatter.Colorspace
119119

0 commit comments

Comments
 (0)