Fix ffmpeg saving long paths
authorCampbell Barton <ideasman42@gmail.com>
Fri, 23 Oct 2015 07:27:26 +0000 (18:27 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 23 Oct 2015 07:40:06 +0000 (18:40 +1100)
Was checking wrong length on string copy.

source/blender/blenkernel/intern/writeffmpeg.c

index 1a63bacf17aaeefd4467043db74d75501190ca0b..1f602ea594d870f6da0195f298593387b065ce77 100644 (file)
@@ -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;