[vlc-commits] codec: subsdec: fix reading non delimited attributes values

Francois Cartegnie git at videolan.org
Fri Sep 8 14:00:02 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Sep  8 13:57:03 2017 +0200| [6157d1d0fa6826625874b96df4c9bfed73693426] | committer: Francois Cartegnie

codec: subsdec: fix reading non delimited attributes values

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

 modules/codec/subsdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index 290c3f31c9..592a10a74a 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -539,7 +539,7 @@ static char* ConsumeAttribute( const char** ppsz_subtitle, char** ppsz_attribute
 
     attr_len = 0;
     while ( *psz_subtitle && ( ( delimiter != 0 && *psz_subtitle != delimiter ) ||
-                               ( delimiter == 0 && ( isalnum( *psz_subtitle ) || *psz_subtitle == '#' ) ) ) )
+                               ( delimiter == 0 && ( !isspace(*psz_subtitle) && *psz_subtitle != '>' ) ) ) )
     {
         psz_subtitle++;
         attr_len++;



More information about the vlc-commits mailing list