From 90949746a252d8c707d552ab977fa4cb323e5316 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 23 Aug 2014 18:44:12 +0100 Subject: Revert use of AVFormatContext::start_time when computing the length of videos. This appears to be wrong; niclasnornemark at gmail sent a file of about a minute length with a start time of 1h something. --- src/lib/ffmpeg_examiner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/ffmpeg_examiner.cc b/src/lib/ffmpeg_examiner.cc index 5fb20ef2c..5ccc8028b 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -137,7 +137,7 @@ FFmpegExaminer::video_size () const VideoContent::Frame FFmpegExaminer::video_length () const { - VideoContent::Frame const length = (double (_format_context->duration - _format_context->start_time) / AV_TIME_BASE) * video_frame_rate(); + VideoContent::Frame const length = (double (_format_context->duration) / AV_TIME_BASE) * video_frame_rate(); return max (1, length); } -- cgit v1.2.3