[vlc-commits] encoder: webvtt: don't write newline

Francois Cartegnie git at videolan.org
Thu Feb 1 15:42:54 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb  1 14:44:16 2018 +0100| [ca47d708f09ac262d55a8faf696b535cd0cbcb3f] | committer: Francois Cartegnie

encoder: webvtt: don't write newline

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

 modules/codec/webvtt/encvtt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/codec/webvtt/encvtt.c b/modules/codec/webvtt/encvtt.c
index 6f1da70246..333363fc1e 100644
--- a/modules/codec/webvtt/encvtt.c
+++ b/modules/codec/webvtt/encvtt.c
@@ -87,8 +87,6 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_spu )
         {
             if( p_segment->psz_text == NULL )
                 continue;
-            if( p_segment != p_region->p_text )
-                bo_add_8( &box, '\n' );
 
             const text_style_t *style = p_segment->style;
             if( style && style->i_features )



More information about the vlc-commits mailing list