[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37438] branches/soc-2011-tomato/source/ blender/blenkernel/intern/movieclip.c: Camera tracking integration

Sergey Sharybin g.ulairi at gmail.com
Sun Jun 12 22:13:06 CEST 2011


Revision: 37438
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37438
Author:   nazgul
Date:     2011-06-12 20:13:06 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
Camera tracking integration
===========================

Fixed bug with uninitialized memory usage when preparing frame number
from movie clip file name.

This error lead to incorrect offset for image sequence. Not sure why this
works fine for some cases, but this easily leads to incorrect footage
caching.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/blenkernel/intern/movieclip.c

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/movieclip.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/movieclip.c	2011-06-12 20:11:21 UTC (rev 37437)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/movieclip.c	2011-06-12 20:13:06 UTC (rev 37438)
@@ -77,7 +77,7 @@
 
 static int sequence_guess_offset(const char *full_name, int head_len, int numlen)
 {
-	char num[FILE_MAX];
+	char num[FILE_MAX]= {0};
 
 	strncpy(num, full_name+head_len, numlen);
 




More information about the Bf-blender-cvs mailing list