summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-08 22:19:51 +0200
committerwm4 <wm4@nowhere>2015-04-08 22:19:51 +0200
commit7a65c44922d5be4a67be4e4c3f4fd47cb06c5e00 (patch)
tree7b31272043d7d573047417e391e22fa14290df75 /sub
parent78fe1d3a2c9cb1c5562cefc1c22a305754c21871 (diff)
downloadmpv-7a65c44922d5be4a67be4e4c3f4fd47cb06c5e00.tar.bz2
mpv-7a65c44922d5be4a67be4e4c3f4fd47cb06c5e00.tar.xz
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.
Diffstat (limited to 'sub')
-rw-r--r--sub/dec_sub.c2
1 files changed, 1 insertions, 1 deletions
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