r1039: Fixed titler bug: occasional full intensity flash at last frame
commit0844e559cee5d179deb82bb8f4eabc0af8846de5
authorJohannes Sixt <johannes.sixt@telecom.at>
Sun, 25 Nov 2007 19:54:05 +0000 (25 19:54 +0000)
committerJohannes Sixt <johannes.sixt@telecom.at>
Sun, 25 Nov 2007 19:54:05 +0000 (25 19:54 +0000)
treeabb4ca381f370c916db90865a30c435d79c0ba6f
parent119794ed2bdb204140048547931d48a7e717b12d
r1039: Fixed titler bug: occasional full intensity flash at last frame

Bug: Titles configured to fade out sometimes flashed the title at full
intensity at the last frame of the effect range.

The problem was a boundary condition of the alpha calculation such that if
the last frame of the effect was exactly aligned with a frame boundary,
alpha would be set to 1 instead of 0.

Also changed some integer truncation to rounding, although this wasn't
related to the bug.

[j6t: use lroundf(...) instead of (int)roundf(...)]

Patch by Craig Lawson.
plugins/titler/title.C