[vlc-commits] codec: cea708: fix rel font size

Francois Cartegnie git at videolan.org
Fri Dec 29 20:08:14 CET 2017


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 29 14:55:13 2017 +0100| [bcbb9b7c6f001f5878368f226c600e639ec18509] | committer: Francois Cartegnie

codec: cea708: fix rel font size

(cherry picked from commit c6af41d7915d8346baf34e16fec31489efd750ab)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=bcbb9b7c6f001f5878368f226c600e639ec18509
---

 modules/codec/cea708.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/cea708.c b/modules/codec/cea708.c
index 51951bd0bb..a6a6beb7bd 100644
--- a/modules/codec/cea708.c
+++ b/modules/codec/cea708.c
@@ -163,10 +163,10 @@ void CEA708_DTVCC_Demuxer_Push( cea708_demux_t *h, mtime_t i_start, const uint8_
 #define CEA708_WINDOW_MAX_ROWS          15
 
 #define CEA708_ROW_HEIGHT_STANDARD     (CEA708_SAFE_AREA_REL / \
-                                        CEA708_SCREEN_ROWS)
+                                        CEA708_WINDOW_MAX_ROWS)
 #define CEA708_FONT_TO_LINE_HEIGHT_RATIO 1.06
 
-#define CEA708_FONTRELSIZE_STANDARD    (CEA708_ROW_HEIGHT_STANDARD / \
+#define CEA708_FONTRELSIZE_STANDARD    (100.0 * CEA708_ROW_HEIGHT_STANDARD / \
                                         CEA708_FONT_TO_LINE_HEIGHT_RATIO)
 #define CEA708_FONTRELSIZE_SMALL       (CEA708_FONTRELSIZE_STANDARD * 0.7)
 #define CEA708_FONTRELSIZE_LARGE       (CEA708_FONTRELSIZE_STANDARD * 1.3)



More information about the vlc-commits mailing list