Move variable declaration, wouldn't compiler with MSVC (reports by jms).
authorKen Hughes <khughes@pacific.edu>
Sun, 11 May 2008 22:51:56 +0000 (22:51 +0000)
committerKen Hughes <khughes@pacific.edu>
Sun, 11 May 2008 22:51:56 +0000 (22:51 +0000)
source/blender/blenkernel/intern/writeffmpeg.c

index 61d598ba8680efe56c5dbe873b433c168bbb9302..51ab7365c014e1455729a009ffcaff0fd6fd20ae 100644 (file)
@@ -343,6 +343,7 @@ static void set_ffmpeg_property_option(AVCodecContext* c, IDProperty * prop)
 {
        char name[128];
        char * param;
+       const AVOption * rv = NULL;
 
        fprintf(stderr, "FFMPEG expert option: %s: ", prop->name);
 
@@ -354,7 +355,6 @@ static void set_ffmpeg_property_option(AVCodecContext* c, IDProperty * prop)
                *param++ = 0;
        }
 
-       const AVOption * rv = NULL;
        switch(prop->type) {
        case IDP_STRING:
                fprintf(stderr, "%s.\n", IDP_String(prop));