mandelbrot: remove always-false condition in fill_from_cache

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Giorgio Vazzana 2011-11-13 13:51:09 +01:00 committed by Michael Niedermayer
parent 102db4f6e7
commit c15400afc5
1 changed files with 1 additions and 1 deletions

View 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)