[vlc-devel] commit: Do not show hidden lines in subrip subtitle. (Laurent Aimar )

git version control git at videolan.org
Thu Oct 2 21:13:27 CEST 2008


vlc | branch: 0.9-bugfix | Laurent Aimar <fenrir at videolan.org> | Tue Sep 23 00:16:56 2008 +0200| [519dcbcc0bbc325681e1e60bcc5cb10cdfcb6d3a] | committer: Derk-Jan Hartman 

Do not show hidden lines in subrip subtitle.
(cherry picked from commit d966d7bf86d60beba307cd437d8527ebd5d307c5)

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

 modules/demux/subtitle.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 937caf9..5d3636f 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -888,7 +888,8 @@ static int ParseSubRipSubViewer( demux_t *p_demux, subtitle_t *p_subtitle,
                                     (int64_t)m2 * 60*1000 +
                                     (int64_t)s2 * 1000 +
                                     (int64_t)d2 ) * 1000;
-            break;
+            if( p_subtitle->i_start < p_subtitle->i_stop )
+                break;
         }
     }
 




More information about the vlc-devel mailing list