FFmpegExaminer::video_length () const
{
ContentTime const length = ContentTime::from_seconds (double (_format_context->duration) / AV_TIME_BASE);
- return ContentTime (1, length.get ());
+ return ContentTime (max (int64_t (1), length.get ()));
}
string