From d38c4879d7917933c2711dff9b6b30979133c6c8 Mon Sep 17 00:00:00 2001 From: zc62 Date: Mon, 18 Feb 2019 08:01:29 -0500 Subject: player: do not rebase start time for subtitle streams As stated in the original commit message, if the demuxer set the start time to the first subtitle packet, the subtitles would be shifted incorrectly. It appears that it is the case for external PGS subtitles. This reverts commit 520fc7403621156676b1ca183aed4911bf6c47b5. Fixes #5485 --- player/loadfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/loadfile.c b/player/loadfile.c index 4e764dc403..f1aa29c74b 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -609,7 +609,7 @@ int mp_add_external_file(struct MPContext *mpctx, char *filename, goto err_out; enable_demux_thread(mpctx, demuxer); - if (opts->rebase_start_time) + if (filter != STREAM_SUB && opts->rebase_start_time) demux_set_ts_offset(demuxer, -demuxer->start_time); bool has_any = false; -- cgit v1.2.3