From 510a29d8dd8d3969fa74557cad18afa3d2ec48ad Mon Sep 17 00:00:00 2001 From: Devin Heitmueller Date: Tue, 13 Sep 2011 00:22:47 +0200 Subject: [PATCH] Fix bug in HTML construction that resulted in malformed HTML (CC) Address a case where we would end up with missing closing underline tags. This results in malformed HTML causing the subpicture to never be rendered in those cases. --- modules/codec/cc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/codec/cc.c b/modules/codec/cc.c index e18a6d6cf2..ff17c0041b 100644 --- a/modules/codec/cc.c +++ b/modules/codec/cc.c @@ -974,7 +974,7 @@ static void Eia608TextLine( struct eia608_screen *screen, char *psz_text, int i_ /* Be sure to create valid html */ b_close_italics |= b_last_italics && b_close_color; - b_close_underline = b_last_underline && ( b_close_italics || b_close_color ); + b_close_underline |= b_last_underline && ( b_close_italics || b_close_color ); if( b_close_underline ) CAT( "" ); -- 2.39.5