Compile fix for some platforms (like linux release build environment)

This commit is contained in:
2011-10-12 18:56:55 +00:00
parent dd8eac0d85
commit c6f253f8a6

View File

@@ -840,8 +840,8 @@ static int index_rebuild_ffmpeg(struct anim * anim,
start_pts_set = TRUE;
}
frameno = round((pts - start_pts)
* pts_time_base * frame_rate);
frameno = floor((pts - start_pts)
* pts_time_base * frame_rate + 0.5f);
/* decoding starts *always* on I-Frames,
so: P-Frames won't work, even if all the