diff options
author | Richard H Lee <ricardohenrylee@gmail.com> | 2016-05-09 22:28:58 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-05-10 00:41:57 +0200 |
commit | da0bf27930ce4add54a58dae56d6c76948898cac (patch) | |
tree | 2182846bbe9bacd654a7a9222b6cf8b68e8b7824 /sub | |
parent | af0a8d7478f0b026d4c5815af8c3ac3acb541e19 (diff) | |
download | mpv-da0bf27930ce4add54a58dae56d6c76948898cac.tar.bz2 mpv-da0bf27930ce4add54a58dae56d6c76948898cac.tar.xz |
ass_process_chunk: Use llrint, not lrint
libass's ass_process_chunk expects long long int for the timecode and
durations arguments, thus should use llrint instead of lrint.
This does not cause any problems on most platforms, but on cygwin, it
causes strange subtitle behaviour, like subtitles not showing, getting
stuck or old subtitles showing at the same time as new subtitles.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sd_ass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index ebe04a29aa..6f35053370 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -270,8 +270,8 @@ static void decode(struct sd *sd, struct demux_packet *packet) // Note that for this packet format, libass has an internal mechanism // for discarding duplicate (already seen) packets. ass_process_chunk(track, packet->buffer, packet->len, - lrint(packet->pts * 1000), - lrint(packet->duration * 1000)); + llrint(packet->pts * 1000), + llrint(packet->duration * 1000)); } } |