diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-09 16:53:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-09 16:53:09 +0000 |
| commit | d688e14e789e1ef99161e247d557e09738e047a7 (patch) | |
| tree | 3b1d20f0999789a213527ddb82210d65742a917f /src | |
| parent | 3417219e1434ff38df90fe0ddf86c58c43f08ec3 (diff) | |
Stop strange things happening with zero-length video files.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/ffmpeg_examiner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
