diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..0332a5b --- /dev/null +++ b/.codespellrc @@ -0,0 +1,5 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,.codespellrc +check-hidden = true +ignore-words-list = datas,acn diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..b026c85 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/docs/spherical-video-rfc.md b/docs/spherical-video-rfc.md index 359c401..29c9325 100644 --- a/docs/spherical-video-rfc.md +++ b/docs/spherical-video-rfc.md @@ -72,7 +72,7 @@ Spherical video metadata is stored in a uniquely-identified *moov.trak.uuid* box #### Stereo Mode -[SEI Frame Packing Arragement](http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=10635) and the [StereoMode](http://www.matroska.org/technical/specs/index.html#StereoMode) tag for Matroska/WebM video files can be used to describe the left/right frame layout. To include non-h264 MPEG-4 files an additional StereoMode tag will override the native stereo configuration. The supported StereoMode values are shown below with the corresponding native values. +[SEI Frame Packing Arrangement](http://www.itu.int/ITU-T/recommendations/rec.aspx?rec=10635) and the [StereoMode](http://www.matroska.org/technical/specs/index.html#StereoMode) tag for Matroska/WebM video files can be used to describe the left/right frame layout. To include non-h264 MPEG-4 files an additional StereoMode tag will override the native stereo configuration. The supported StereoMode values are shown below with the corresponding native values. | **Name** | **Description** |Equivalent MKV Value | Equivalent h264 SEI FPI | |----------|-----------------|---------------------|-------------------------| diff --git a/spatialmedia/mpeg/box.py b/spatialmedia/mpeg/box.py index 0ebacf8..d5522fc 100755 --- a/spatialmedia/mpeg/box.py +++ b/spatialmedia/mpeg/box.py @@ -155,7 +155,7 @@ def index_copy(in_fh, out_fh, box, mode, mode_length, delta=0): out_fh: file handle, destination for index file. box: box, stco/co64 box to copy. mode: string, bit packing mode for index entries. - mode_length: int, number of bytes for index entires. + mode_length: int, number of bytes for index entries. delta: int, offset change for index entries. """ fh = in_fh