Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/test_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_codec_mpeg4_decoder() -> None:
assert c.name == "mpeg4"
assert c.long_name == "MPEG-4 part 2"
assert c.type == "video"
assert c.id in (12, 13)
assert c.id == Codec("mpeg4", "w").id # ids are not stable across FFmpeg versions
assert c.is_decoder
assert not c.is_encoder
assert c.delay
Expand All @@ -38,7 +38,7 @@ def test_codec_mpeg4_encoder() -> None:
assert c.name == "mpeg4"
assert c.long_name == "MPEG-4 part 2"
assert c.type == "video"
assert c.id in (12, 13)
assert c.id == Codec("mpeg4").id # ids are not stable across FFmpeg versions
assert c.is_encoder
assert not c.is_decoder
assert c.delay
Expand Down
4 changes: 2 additions & 2 deletions tests/test_containerformat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from av import ContainerFormat, formats_available, open
from av import Codec, ContainerFormat, formats_available, open

from .common import fate_suite

Expand Down Expand Up @@ -62,7 +62,7 @@ def test_video_codec_id() -> None:
# Regression test for https://github.com/PyAV-Org/PyAV/issues/2243
# video_codec_id allows overriding the codec used when opening a container.
AV_CODEC_ID_NONE = 0
AV_CODEC_ID_H264 = 27
AV_CODEC_ID_H264 = Codec("h264").id

with open(fate_suite("h264/interlaced_crop.mp4")) as container:
assert container.video_codec_id == AV_CODEC_ID_NONE
Expand Down
Loading