summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-07 10:20:03 +0100
committerKevin Mitchell <kevmitch@gmail.com>2017-12-07 23:48:16 -0800
commit520fc7403621156676b1ca183aed4911bf6c47b5 (patch)
tree9b6bfe8fdf647164bfd5409f52a728fb078ca08a
parent8977fe5ed9d73dd56441d5071a0c2732636e7be3 (diff)
downloadmpv-520fc7403621156676b1ca183aed4911bf6c47b5.tar.bz2
mpv-520fc7403621156676b1ca183aed4911bf6c47b5.tar.xz
player: rebase start time even for subtitle streams
It appears libavformat never sets the file start time for subtitles, so this special check is not needed. The original idea was probably that _if_ the demuxer set the start time to the first subtitle packet, the subtitles would be shifted incorrectly.
-rw-r--r--player/loadfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 46f5d4e4f3..674902e9be 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -598,7 +598,7 @@ struct track *mp_add_external_file(struct MPContext *mpctx, char *filename,
goto err_out;
enable_demux_thread(mpctx, demuxer);
- if (filter != STREAM_SUB && opts->rebase_start_time)
+ if (opts->rebase_start_time)
demux_set_ts_offset(demuxer, -demuxer->start_time);
struct track *first = NULL;