do not round height to mod4

This commit is contained in:
jazzfool 2024-10-03 16:15:55 +10:00
parent fa02ee5652
commit d4847e95fc

View file

@ -215,7 +215,6 @@ impl Video {
let height = s.get::<i32>("height").map_err(|_| Error::Caps)?; let height = s.get::<i32>("height").map_err(|_| Error::Caps)?;
// resolution should be mod4 // resolution should be mod4
let width = ((width + 4 - 1) / 4) * 4; let width = ((width + 4 - 1) / 4) * 4;
let height = ((height + 4 - 1) / 4) * 4;
let framerate = s let framerate = s
.get::<gst::Fraction>("framerate") .get::<gst::Fraction>("framerate")
.map_err(|_| Error::Caps)?; .map_err(|_| Error::Caps)?;