Commit c15400af authored by Giorgio Vazzana's avatar Giorgio Vazzana Committed by Michael Niedermayer

mandelbrot: remove always-false condition in fill_from_cache

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 102db4f6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment