From d4847e95fcbb586a91d24e612fa3fe0f51c12127 Mon Sep 17 00:00:00 2001 From: jazzfool Date: Thu, 3 Oct 2024 16:15:55 +1000 Subject: [PATCH] do not round height to mod4 --- src/video.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/video.rs b/src/video.rs index 31ce22f..0a7a66d 100644 --- a/src/video.rs +++ b/src/video.rs @@ -215,7 +215,6 @@ impl Video { let height = s.get::("height").map_err(|_| Error::Caps)?; // resolution should be mod4 let width = ((width + 4 - 1) / 4) * 4; - let height = ((height + 4 - 1) / 4) * 4; let framerate = s .get::("framerate") .map_err(|_| Error::Caps)?;