diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-12-13 22:04:49 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-12-13 22:04:49 +0000 |
| commit | 6a68937320fa76ce213c648845abc73983fc1849 (patch) | |
| tree | 542a0426b4a0790f28cce34aef43e52b41e896cf /src/lib/ffmpeg_decoder.cc | |
| parent | 7b0af48a5861cb58314db46d29b05289979c2c25 (diff) | |
Setup SubtitleDecoder::_position correctly (in some cases).
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 378b59901..0d6ac383f 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -98,7 +98,8 @@ FFmpegDecoder::FFmpegDecoder (shared_ptr<const FFmpegContent> c, shared_ptr<Log> } if (c->subtitle) { - subtitle.reset (new SubtitleDecoder (this, c->subtitle, log)); + /* XXX: this time here should be the time of the first subtitle, not 0 */ + subtitle.reset (new SubtitleDecoder (this, c->subtitle, log, ContentTime())); } _next_time.resize (_format_context->nb_streams); |
