[vlc-commits] [Git][videolan/vlc][master] substtml: fix inverted logic

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Mon Jan 3 15:15:59 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC


Commits:
258e9452 by Lyndon Brown at 2022-01-03T15:01:29+00:00
substtml: fix inverted logic

- - - - -


1 changed file:

- modules/codec/ttml/substtml.c


Changes:

=====================================
modules/codec/ttml/substtml.c
=====================================
@@ -775,7 +775,7 @@ static void BIDIConvert( text_segment_t *p_segment, int i_direction )
 
     char *psz_text = NULL;
     if( asprintf( &psz_text, "%s%s%s", p_bidi[i_direction].psz_uni_start,
-                  p_segment->psz_text, p_bidi[i_direction].psz_uni_end ) < 0 )
+                  p_segment->psz_text, p_bidi[i_direction].psz_uni_end ) != -1 )
     {
         free( p_segment->psz_text );
         p_segment->psz_text = psz_text;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/258e94525fcee19e473fb618a705ea70e180e37d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/258e94525fcee19e473fb618a705ea70e180e37d
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list