diff options
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); |
