Skip to content

Commit

Permalink
Fix wrong colorspace lowercase enum
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Nov 8, 2024
1 parent cffe076 commit 2341842
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@ Major:
- Drop FFmpeg 6.
- Remove ``AVError`` alias (use ``FFmpegError`` directly instead).
- Remove the `template` arg from ``OutputContainer.add_stream()``.
- Remove ``CodecContext.close()`` because it's deprecated in ffmpeg.

Features:

- Add ``OutputContainer.add_stream_from_template()`` by :gh-user:`WyattBlue` and :gh-user:`cdce8p`.
- Add ``qmin`` and ``qmax`` parameters to the ``VideoCodecContext`` by :gh-user:`davidplowman` in (:pr:`1618`).

Fixes:

- Correct ``Colorspace``'s lowercase enums.
- Ensure streams in StreamContainer are released. Fixes :issue:`1599`.

v13.1.0
-------
Expand Down
2 changes: 1 addition & 1 deletion av/video/reformatter.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Colorspace(IntEnum):
itu709 = lib.SWS_CS_ITU709
fcc = lib.SWS_CS_FCC
itu601 = lib.SWS_CS_ITU601
itu624 = lib.SWS_CS_SMPTE170M
itu624 = lib.SWS_CS_ITU624
smpte170m = lib.SWS_CS_SMPTE170M
smpte240m = lib.SWS_CS_SMPTE240M
default = lib.SWS_CS_DEFAULT
Expand Down

0 comments on commit 2341842

Please sign in to comment.