do not round height to mod4
This commit is contained in:
parent
fa02ee5652
commit
d4847e95fc
1 changed files with 0 additions and 1 deletions
|
@ -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)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue