From d688e14e789e1ef99161e247d557e09738e047a7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 9 Nov 2013 16:53:09 +0000 Subject: Stop strange things happening with zero-length video files. --- 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 fa0f54b23..ddbed4c53 100644 --- a/src/lib/ffmpeg_examiner.cc +++ b/src/lib/ffmpeg_examiner.cc @@ -137,7 +137,7 @@ VideoContent::Frame FFmpegExaminer::video_length () const { VideoContent::Frame const length = (double (_format_context->duration) / AV_TIME_BASE) * video_frame_rate(); - return max (0, length); + return max (1, length); } string -- cgit v1.2.3