Skip to content

Commit 3d8f479

Browse files
committed
skip metadata checks on ffmpeg 4, 5
1 parent 8a6a26d commit 3d8f479

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_encoders.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,8 +1048,9 @@ def test_video_encoder_against_ffmpeg_cli(
10481048
ff_frame, enc_frame, percentage=percentage, atol=2
10491049
)
10501050

1051-
# Check that video metadata is the same
1052-
if method == "to_file":
1051+
# Only compare video metadata on ffmpeg versions >= 6, as older versions
1052+
# are often missing metadata
1053+
if ffmpeg_version >= 6 and method == "to_file":
10531054
fields = [
10541055
"duration",
10551056
"duration_ts",

0 commit comments

Comments
 (0)