From 22873931f874a87fcf6a0077eddbec0f97eb3423 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 1 Feb 2016 00:26:37 +0000 Subject: Subtitle "to" times used to be stored against their "from" times. Sadly an example shows that from times are not unique. This patch uses a hash of stuff from the first AVSubtitle as the key. --- src/lib/ffmpeg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg.h') diff --git a/src/lib/ffmpeg.h b/src/lib/ffmpeg.h index b3bc13e5c..0b195268a 100644 --- a/src/lib/ffmpeg.h +++ b/src/lib/ffmpeg.h @@ -56,7 +56,8 @@ protected: std::vector > audio_streams, boost::optional first_video, double video_frame_rate ) const; - static FFmpegSubtitlePeriod subtitle_period (AVSubtitle const &); + static FFmpegSubtitlePeriod subtitle_period (AVSubtitle const & sub); + static std::string subtitle_id (AVSubtitle const & sub); boost::shared_ptr _ffmpeg_content; -- cgit v1.2.3