projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4699463
)
Fix hash on bottom line after odd crops of YUV images.
author
Carl Hetherington
<cth@carlh.net>
Sun, 16 Jun 2013 13:55:43 +0000
(14:55 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 16 Jun 2013 13:55:43 +0000
(14:55 +0100)
src/lib/image.cc
patch
|
blob
|
history
diff --git
a/src/lib/image.cc
b/src/lib/image.cc
index 5f7d3f034199f020e6afe714da340663927b862d..0bff1a7ccfca18d9912b33e44dffa28e532c5f3c 100644
(file)
--- a/
src/lib/image.cc
+++ b/
src/lib/image.cc
@@
-74,7
+74,7
@@
Image::line_factor (int n) const
int
Image::lines (int n) const
{
- return
size().height / line_factor (n
);
+ return
rint (ceil (static_cast<double>(size().height) / line_factor (n))
);
}
/** @return Number of components */