Skip to content

Commit b5b42d9

Browse files
author
Molly Xu
committed
fix merge error
1 parent e41719b commit b5b42d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_encoders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def encode_to_tensor(frames):
890890
@pytest.mark.parametrize("method", ("to_file", "to_tensor", "to_file_like"))
891891
def test_round_trip(self, tmp_path, format, method):
892892
# Test that decode(encode(decode(frames))) == decode(frames)
893-
source_frames = self.decode(TEST_SRC_2_720P.path).data
893+
source_frames, frame_rate = self.decode_and_get_frame_rate(TEST_SRC_2_720P.path)
894894

895895
encoder = VideoEncoder(frames=source_frames, frame_rate=frame_rate)
896896

@@ -945,7 +945,7 @@ def test_round_trip(self, tmp_path, format, method):
945945
@pytest.mark.parametrize("method", ("to_tensor", "to_file_like"))
946946
def test_against_to_file(self, tmp_path, format, method):
947947
# Test that to_file, to_tensor, and to_file_like produce the same results
948-
source_frames = self.decode(TEST_SRC_2_720P.path).data
948+
source_frames, frame_rate = self.decode_and_get_frame_rate(TEST_SRC_2_720P.path)
949949
encoder = VideoEncoder(frames=source_frames, frame_rate=30)
950950

951951
encoded_file = tmp_path / f"output.{format}"

0 commit comments

Comments
 (0)