mirror of https://git.ffmpeg.org/ffmpeg.git
mandelbrot: remove always-false condition in fill_from_cache
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
102db4f6e7
commit
c15400afc5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue