diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-26 23:33:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-26 23:33:28 +0100 |
| commit | 9d4678143d1fa992059c90a2b0997fa5cae81e93 (patch) | |
| tree | fadf52a829da6f962b09f234ca1166e85014ecd5 /src/lib/ffmpeg_subtitle_stream.h | |
| parent | 924dd6e5356f401c325a42ccb43607b79027bb59 (diff) | |
Fix problems with subtitles when there is a non-zero PTS offset
in FFmpegDecoder. This offset was not being taken into account for
subtitles prior to this commit.
Diffstat (limited to 'src/lib/ffmpeg_subtitle_stream.h')
| -rw-r--r-- | src/lib/ffmpeg_subtitle_stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_subtitle_stream.h b/src/lib/ffmpeg_subtitle_stream.h index a39b10ffd..0809b359a 100644 --- a/src/lib/ffmpeg_subtitle_stream.h +++ b/src/lib/ffmpeg_subtitle_stream.h @@ -34,8 +34,8 @@ public: void add_subtitle (ContentTimePeriod period); std::list<ContentTimePeriod> subtitles_during (ContentTimePeriod period, bool starting) const; ContentTime find_subtitle_to (ContentTime from) const; + void add_offset (ContentTime offset); private: std::map<ContentTime, ContentTime> _subtitles; }; - |
