Fix off-by-one error on video output.
Merge pull request #9 from Alcaro/master

Fix off-by-one error on video output.