Commit bf4df828 authored by Alexander Shishkov's avatar Alexander Shishkov

minor changes in wrapper

parent a5ae52fb
...@@ -1066,8 +1066,8 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc, ...@@ -1066,8 +1066,8 @@ static AVStream *icv_add_video_stream_FFMPEG(AVFormatContext *oc,
of which frame timestamps are represented. for fixed-fps content, of which frame timestamps are represented. for fixed-fps content,
timebase should be 1/framerate and timestamp increments should be timebase should be 1/framerate and timestamp increments should be
identically 1. */ identically 1. */
frame_rate=(int)(fps+0.5); frame_rate = static_cast<int>(fps+0.5);
frame_rate_base=1; frame_rate_base = 1;
while (fabs((double)frame_rate/frame_rate_base) - fps > 0.001){ while (fabs((double)frame_rate/frame_rate_base) - fps > 0.001){
frame_rate_base *= 10; frame_rate_base *= 10;
frame_rate=(int)(fps*frame_rate_base + 0.5); frame_rate=(int)(fps*frame_rate_base + 0.5);
......
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