[vlc-commits] subsusf: Remove dead code

Hugo Beauzée-Luyssen git at videolan.org
Fri Nov 24 16:28:53 CET 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Nov 24 16:06:34 2017 +0100| [4daf86699221d19e13fb4f2078dfee8137e50a6d] | committer: Hugo Beauzée-Luyssen

subsusf: Remove dead code

CID #1346935

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

 modules/codec/subsusf.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/codec/subsusf.c b/modules/codec/subsusf.c
index 7e4a66e8d6..b39e1fae29 100644
--- a/modules/codec/subsusf.c
+++ b/modules/codec/subsusf.c
@@ -920,10 +920,7 @@ static subpicture_region_t *ParseUSFString( decoder_t *p_dec,
             {
                 subpicture_region_t  *p_text_region;
 
-                if( psz_end )
-                    psz_end += strcspn( psz_end, ">" ) + 1;
-                else
-                    psz_end = psz_subtitle + strlen( psz_subtitle );
+                psz_end = psz_subtitle + strlen( psz_subtitle );
 
                 p_text_region = CreateTextRegion( p_dec,
                                                   psz_subtitle,



More information about the vlc-commits mailing list