Skip to content

Commit 75ff931

Browse files
committed
Skip qminmax if not x264
1 parent 12a2bdc commit 75ff931

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_encode.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ def encode_frames_with_qminmax(frames: list, shape: tuple, qminmax: tuple) -> in
399399
400400
Returns: total length of the encoded bytes.
401401
"""
402+
403+
if av.codec.Codec("h264", "w").name != "libx264":
404+
pytest.skip()
405+
402406
file = io.BytesIO()
403407
container = av.open(file, mode="w", format="mp4")
404408
stream = container.add_stream("h264", rate=30)

0 commit comments

Comments
 (0)