Credit Andrew initialize missed variables
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / virtualanode.C
index a1ad5235c65841c413e88d309034820a5e3d7395..50f35a463b5d382fcf5cedcf746e139c91826503 100644 (file)
@@ -368,7 +368,7 @@ int VirtualANode::render_fade(double *buffer, int64_t len,
        int64_t input_position, int64_t sample_rate,
        Autos *autos, int direction, int use_nudge)
 {
-       double fade_value;
+       double fade_value = 0.0;
        FloatAuto *previous = 0;
        FloatAuto *next = 0;
        EDL *edl = vconsole->renderengine->get_edl();
@@ -475,11 +475,11 @@ int VirtualANode::render_pan(double *input, // start of input fragment
                        }
                }
                else if( EQUIV(intercept, 1) ) {
-                       for(int j = 0; j < slope_len; j++, i++)
+                       for(int64_t j = 0; j < slope_len; j++, i++)
                                output[i] += input[i];
                }
                else if( !EQUIV(intercept, 0) ) {
-                       for(int j = 0; j < slope_len; j++, i++)
+                       for(int64_t j = 0; j < slope_len; j++, i++)
                                output[i] += input[i] * intercept;
                }
                else