[vlc-commits] demux: subtitle: missing TS_0
Francois Cartegnie
git at videolan.org
Wed Jan 17 16:12:53 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 6 18:49:48 2017 +0100| [d2bddfa7014ecb8464332efcccfb160354fe98a1] | committer: Jean-Baptiste Kempf
demux: subtitle: missing TS_0
(cherry picked from commit 05f32a80f35fcdfcb225554afd53cb028a443436)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=d2bddfa7014ecb8464332efcccfb160354fe98a1
---
modules/demux/subtitle.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 559f4d4af6..486f3e61f3 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -2438,7 +2438,8 @@ static int ParseSCC( vlc_object_t *p_obj, subs_properties_t *p_props,
/* convert to frame # at 29.97 */
i_frames = i_frames * framerates[3].rate.num / framerates[3].rate.den + f;
}
- p_subtitle->i_start = i_frames * CLOCK_FREQ * p_rate->rate.den / p_rate->rate.num;
+ p_subtitle->i_start = VLC_TS_0 + i_frames * CLOCK_FREQ *
+ p_rate->rate.den / p_rate->rate.num;
p_subtitle->i_stop = -1;
const char *psz_text = strchr( psz_line, '\t' );
More information about the vlc-commits
mailing list