Skip to content

Commit 900e39b

Browse files
strophyWyattBlue
authored andcommitted
Fix changed rounding in in NEON-accelerated yuv420p->rgb24 in FFmpeg 8.1
1 parent 57d8f4d commit 900e39b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/test_videoframe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,4 +1293,6 @@ def test_reformat_pixel_format_align() -> None:
12931293
expected_rgb[:, :, 2] = 255
12941294

12951295
frame_rgb = frame_yuv.reformat(format="rgb24")
1296-
assertNdarraysEqual(frame_rgb.to_ndarray(), expected_rgb)
1296+
result = frame_rgb.to_ndarray()
1297+
assert result.shape == expected_rgb.shape
1298+
assert numpy.abs(result.astype(int) - expected_rgb.astype(int)).max() <= 1

0 commit comments

Comments
 (0)