2D stabilizer: Fix compilation error in debug mode
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 16 Aug 2016 12:24:06 +0000 (14:24 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 16 Aug 2016 12:24:06 +0000 (14:24 +0200)
source/blender/blenkernel/intern/tracking_stabilize.c

index 5642ee83fdedc253e4be6ba5f451ad104592fdc4..1d5710997234ff5f293a7b4ac9d3c03cd8b6d74d 100644 (file)
@@ -360,7 +360,7 @@ static void retrieve_next_lower_usable_frame(StabContext *ctx,
                                              int *next_lower)
 {
        MovieTrackingMarker *markers = track->markers;
-       BLI_assert(0 <= i && i < end);
+       BLI_assert(0 <= i && i < track->markersnr);
        while (i >= 0 &&
               (markers[i].framenr > ref_frame ||
                is_effectively_disabled(ctx, track, &markers[i])))