[vlc-commits] subtitle: Fix invalid double increment.

Hugo Beauzée-Luyssen git at videolan.org
Thu Apr 6 16:38:07 CEST 2017


vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr  6 16:25:13 2017 +0200| [088de76925d330d32e8e4c8c02ee52c8ad2658cf] | committer: Hugo Beauzée-Luyssen

subtitle: Fix invalid double increment.

Reported-by: Yannay Livneh <yannayl at checkpoint.com>
             Omri Herscovici <omrih at checkpoint.com>
             Omer Gull <omergu at checkpoint.com>

(cherry picked from commit 775de716add17322f24b476439f903a829446eb6)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

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

diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index ccfc9cf..6470756 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -1867,7 +1867,7 @@ static int ParseJSS( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
             if( ( toupper((unsigned char)*(psz_text + 1 ) ) == 'C' ) ||
                     ( toupper((unsigned char)*(psz_text + 1 ) ) == 'F' ) )
             {
-                psz_text++; psz_text++;
+                psz_text++;
                 break;
             }
             if( (*(psz_text + 1 ) ) == 'B' || (*(psz_text + 1 ) ) == 'b' ||



More information about the vlc-commits mailing list