]> git.sesse.net Git - vlc/commitdiff
Fix improper rendering of PAC codes containing color or font styles (CC)
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Mon, 12 Sep 2011 22:23:21 +0000 (00:23 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 12 Sep 2011 22:23:21 +0000 (00:23 +0200)
modules/codec/cc.c

index ff17c0041ba4222db99ecc8ed633f565719b3c89..7fe63bde86575898c2a40862a5afe7adf2a5e652 100644 (file)
@@ -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;
 }