Skip to content

Commit 8c1d7df

Browse files
authored
Use standard test header and typed OpenCV fourcc API
Signed-off-by: Mingyang Wu <aprylewu@gmail.com> Assisted-by: OpenAI Codex
1 parent e7b1629 commit 8c1d7df

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎tests/test_threshold_detector.py‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
# Copyright (C) 2026 Mingyang Wu.
2-
# PySceneDetect is licensed under the BSD 3-Clause License; see LICENSE for details.
1+
#
2+
# PySceneDetect: Python-Based Video Scene Detector
3+
# -------------------------------------------------------------------
4+
# [ Site: https://scenedetect.com ]
5+
# [ Docs: https://scenedetect.com/docs/ ]
6+
# [ Github: https://github.com/Breakthrough/PySceneDetect/ ]
7+
#
8+
# Copyright (C) 2026 Brandon Castellano <http://www.bcastell.com>.
9+
# PySceneDetect is licensed under the BSD 3-Clause License; see the
10+
# included LICENSE file, or visit one of the above pages for details.
11+
#
312
"""Duration filtering for threshold-based fades."""
413

514
import csv
@@ -79,7 +88,7 @@ def test_default_keeps_short_fades():
7988

8089

8190
def _write_video(path, levels):
82-
writer = cv2.VideoWriter(str(path), cv2.VideoWriter_fourcc(*"MJPG"), 10, (64, 48))
91+
writer = cv2.VideoWriter(str(path), cv2.VideoWriter.fourcc(*"MJPG"), 10, (64, 48))
8392
assert writer.isOpened()
8493
try:
8594
for level in levels:

0 commit comments

Comments
 (0)