summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-08-23 18:44:12 +0100
committerCarl Hetherington <cth@carlh.net>2014-08-23 18:44:12 +0100
commit90949746a252d8c707d552ab977fa4cb323e5316 (patch)
tree8683603ea09c1821258d3f0200eae8b360edfc03 /src/lib
parent30fb65ed98aa322d22d370b6e7d66979d6daa6f7 (diff)
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.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg_examiner.cc2
1 files changed, 1 insertions, 1 deletions
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);
}