[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56943] trunk/blender/source/creator/ creator.c: Fix #35443: Animation player doesn't play some movie formats

Sergey Sharybin sergey.vfx at gmail.com
Tue May 21 14:18:36 CEST 2013


Revision: 56943
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56943
Author:   nazgul
Date:     2013-05-21 12:18:35 +0000 (Tue, 21 May 2013)
Log Message:
-----------
Fix #35443: Animation player doesn't play some movie formats

Need to initialize FFmpeg for animation player.

This is a bit confusing, but the only way to do this
properly and clear is to call IMB_ffmpeg_init from
playback_mode command line callback.

This is because this callback is blocking and
"usual" FFmpeg initializetion (which happens after
command line parsing) was never called.

Could be switched to separate FFmpeg initializtion
and debug level set but let's keep simple for now.

Modified Paths:
--------------
    trunk/blender/source/creator/creator.c

Modified: trunk/blender/source/creator/creator.c
===================================================================
--- trunk/blender/source/creator/creator.c	2013-05-21 11:37:42 UTC (rev 56942)
+++ trunk/blender/source/creator/creator.c	2013-05-21 12:18:35 UTC (rev 56943)
@@ -634,6 +634,11 @@
 {
 	/* not if -b was given first */
 	if (G.background == 0) {
+#ifdef WITH_FFMPEG
+		/* Setup FFmpeg with current debug flags. */
+		IMB_ffmpeg_init();
+#endif
+
 		WM_main_playanim(argc, argv); /* not the same argc and argv as before */
 		exit(0); /* 2.4x didn't do this */
 	}




More information about the Bf-blender-cvs mailing list