[Bf-blender-cvs] [c01e9ce] blender-v2.76-release: Fix ffmpeg saving long paths

Campbell Barton noreply at git.blender.org
Thu Oct 29 12:07:48 CET 2015


Commit: c01e9cefe1522bca5dfdba0c909185b46aea2eab
Author: Campbell Barton
Date:   Fri Oct 23 18:27:26 2015 +1100
Branches: blender-v2.76-release
https://developer.blender.org/rBc01e9cefe1522bca5dfdba0c909185b46aea2eab

Fix ffmpeg saving long paths

Was checking wrong length on string copy.

===================================================================

M	source/blender/blenkernel/intern/writeffmpeg.c

===================================================================

diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index bc734a9..079d244 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -809,7 +809,7 @@ static int start_ffmpeg_impl(FFMpegContext *context, struct RenderData *rd, int
 	AVFormatContext *of;
 	AVOutputFormat *fmt;
 	AVDictionary *opts = NULL;
-	char name[256], error[1024];
+	char name[FILE_MAX], error[1024];
 	const char **exts;
 
 	context->ffmpeg_type = rd->ffcodecdata.type;




More information about the Bf-blender-cvs mailing list