Commit f8b14a16 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10262 from Riyuzakii:10209

parents d329674f 8f134509
......@@ -1113,11 +1113,6 @@ double CvCapture_FFMPEG::get_duration_sec() const
sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base);
}
if (sec < eps_zero)
{
sec = (double)ic->streams[video_stream]->duration * r2d(ic->streams[video_stream]->time_base);
}
return sec;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment