[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41973] trunk/blender/source/blender/imbuf /intern/anim_movie.c: Fix #29321: Video does not display, gets frozen or flickers

Sergey Sharybin sergey.vfx at gmail.com
Fri Nov 18 21:55:06 CET 2011


Revision: 41973
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41973
Author:   nazgul
Date:     2011-11-18 20:55:06 +0000 (Fri, 18 Nov 2011)
Log Message:
-----------
Fix #29321: Video does not display, gets frozen or flickers

Unfortunately, error was caused by own attempt to deal with some kind of broken
videos when was investigating crashes in sequencer. Issue discovered that time
was related on values stored in timecode index and using them as signed data type
later.

Trying to use unsigned value here leads to signed/unsigned check failures.

Prefer just to pre-process that kind of videos i've been trying to deal with
rather than making more global changes during BCON3.

Modified Paths:
--------------
    trunk/blender/source/blender/imbuf/intern/anim_movie.c

Modified: trunk/blender/source/blender/imbuf/intern/anim_movie.c
===================================================================
--- trunk/blender/source/blender/imbuf/intern/anim_movie.c	2011-11-18 17:28:19 UTC (rev 41972)
+++ trunk/blender/source/blender/imbuf/intern/anim_movie.c	2011-11-18 20:55:06 UTC (rev 41973)
@@ -895,7 +895,7 @@
 
 static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position,
 				IMB_Timecode_Type tc) {
-	unsigned long long pts_to_search = 0;
+	int64_t pts_to_search = 0;
 	double frame_rate;
 	double pts_time_base;
 	long long st_time; 




More information about the Bf-blender-cvs mailing list