[vlc-devel] commit: Do not show hidden lines in subrip subtitle. (Laurent Aimar )
git version control
git at videolan.org
Tue Sep 23 00:16:37 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Sep 23 00:16:56 2008 +0200| [d966d7bf86d60beba307cd437d8527ebd5d307c5] | committer: Laurent Aimar
Do not show hidden lines in subrip subtitle.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d966d7bf86d60beba307cd437d8527ebd5d307c5
---
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 16ca09c..a4e4d83 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -892,7 +892,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