From 7a65c44922d5be4a67be4e4c3f4fd47cb06c5e00 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 8 Apr 2015 22:19:51 +0200 Subject: sub: don't truncate timestamps to int Realistically probably no problem at all since they're in ms and usually start from 0, but whatever. --- sub/dec_sub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub') diff --git a/sub/dec_sub.c b/sub/dec_sub.c index c08e5a0fa2..eb96131be7 100644 --- a/sub/dec_sub.c +++ b/sub/dec_sub.c @@ -344,7 +344,7 @@ static void multiply_timings(struct packet_list *subs, double factor) } } -#define MS_TS(f_ts) ((int)((f_ts) * 1000 + 0.5)) +#define MS_TS(f_ts) ((long long)((f_ts) * 1000 + 0.5)) // Remove overlaps and fill gaps between adjacent subtitle packets. This is done // by adjusting the duration of the earlier packet. If the gaps or overlap are -- cgit v1.2.3