[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39196] branches/soc-2011-tomato/source/ blender/imbuf/intern/anim_movie.c: Camera tracking integration
Sergey Sharybin
g.ulairi at gmail.com
Mon Aug 8 21:02:18 CEST 2011
Revision: 39196
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39196
Author: nazgul
Date: 2011-08-08 19:02:18 +0000 (Mon, 08 Aug 2011)
Log Message:
-----------
Camera tracking integration
===========================
Next attempt to fix MSVC compilation.
I wish i've got my laptop by hand..
Modified Paths:
--------------
branches/soc-2011-tomato/source/blender/imbuf/intern/anim_movie.c
Modified: branches/soc-2011-tomato/source/blender/imbuf/intern/anim_movie.c
===================================================================
--- branches/soc-2011-tomato/source/blender/imbuf/intern/anim_movie.c 2011-08-08 18:44:19 UTC (rev 39195)
+++ branches/soc-2011-tomato/source/blender/imbuf/intern/anim_movie.c 2011-08-08 19:02:18 UTC (rev 39196)
@@ -76,6 +76,8 @@
#include "BKE_global.h"
#include "BKE_depsgraph.h"
+#include "BLI_math_base.h"
+
#include "imbuf.h"
#include "AVI_avi.h"
@@ -1014,7 +1016,7 @@
tc_index, new_frame_index);
} else {
pts_to_search = (long long)
- rint(((double) position) / pts_time_base / frame_rate);
+ floor(((double) position) / pts_time_base / frame_rate + 0.5);
if (st_time != AV_NOPTS_VALUE) {
pts_to_search += st_time / pts_time_base
More information about the Bf-blender-cvs
mailing list