zvbi: return actual last visible row
commit59c8ec8a549dbd9b626128024d16fb2017683ff0
authorHannes Domani <ssbssa@yahoo.de>
Mon, 15 Sep 2014 14:50:36 +0000 (15 16:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 17 Sep 2014 06:21:48 +0000 (17 08:21 +0200)
treecd16576a946c12d7d87f380df58e1437dd3a77b9
parentde5710e55d75a79ac8b4d152a63d7455d74d208b
zvbi: return actual last visible row

Currently in most cases the row after the last is returned.
When the last row is visible vbi_draw_vt_page_region() could
crash, because it went over the size of p_page.text and use
invalid values (>=40) as index for p_page.color_map.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/zvbi.c