[vlc-commits] Fix improper rendering of PAC codes containing color or font styles (CC)

Devin Heitmueller git at videolan.org
Tue Sep 13 00:30:16 CEST 2011


vlc | branch: master | Devin Heitmueller <dheitmueller at kernellabs.com> | Tue Sep 13 00:23:21 2011 +0200| [7fd0bb96b1040e8be04fc4f1f4e72b39c180515d] | committer: Laurent Aimar

Fix improper rendering of PAC codes containing color or font styles (CC)

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

 modules/codec/cc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index ff17c00..7fe63bd 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -750,6 +750,9 @@ static bool Eia608ParsePac( eia608_t *h, uint8_t d1, uint8_t d2 )
     else if( d2 >= 0x40 )
         d2 -= 0x40;
     h->cursor.i_column = pac2_attribs[d2].i_column;
+    h->color = pac2_attribs[d2].i_color;
+    h->font  = pac2_attribs[d2].i_font;
+
     return false;
 }
 



More information about the vlc-commits mailing list