[Bf-blender-cvs] [050980e] master: Fix ffmpeg saving long paths

Campbell Barton noreply at git.blender.org
Fri Oct 23 09:46:44 CEST 2015


Commit: 050980e635b5bd75a8b526249504a1089330298a
Author: Campbell Barton
Date:   Fri Oct 23 18:27:26 2015 +1100
Branches: master
https://developer.blender.org/rB050980e635b5bd75a8b526249504a1089330298a

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 1a63bac..1f602ea 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