diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-12 22:56:55 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-12 22:56:55 +0400 |
commit | c6f253f8a62a5d6abaa48b4df1d54e5a540d32b5 (patch) | |
tree | 994129cd9b845f7fa96e9d38fe8020aa278b9c8a /source/blender/imbuf/intern | |
parent | dd8eac0d85c3520bcbab286e138be00982734a42 (diff) |
Compile fix for some platforms (like linux release build environment)
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/indexer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c index 3f764e4d452..635813d856e 100644 --- a/source/blender/imbuf/intern/indexer.c +++ b/source/blender/imbuf/intern/indexer.c @@ -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 |