mandelbrot: remove always-false condition in fill_from_cache
authorGiorgio Vazzana <mywing81@gmail.com>
Sun, 13 Nov 2011 12:51:09 +0000 (13:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 13 Nov 2011 18:41:21 +0000 (19:41 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_mandelbrot.c

index cab372d..ee0560d 100644 (file)
@@ -152,7 +152,7 @@ static void fill_from_cache(AVFilterContext *ctx, uint32_t *color, int *in_cidx,
     for(; *in_cidx < mb->cache_used; (*in_cidx)++){
         Point *p= &mb->point_cache[*in_cidx];
         int x;
-        if(*in_cidx >= mb->cache_used || p->p[1] > py)
+        if(p->p[1] > py)
             break;
         x= round((p->p[0] - mb->start_x) / scale + mb->w/2);
         if(x<0 || x >= mb->w)