You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mandelbrot: remove always-false condition in fill_from_cache
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
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)++){
|
for(; *in_cidx < mb->cache_used; (*in_cidx)++){
|
||||||
Point *p= &mb->point_cache[*in_cidx];
|
Point *p= &mb->point_cache[*in_cidx];
|
||||||
int x;
|
int x;
|
||||||
if(*in_cidx >= mb->cache_used || p->p[1] > py)
|
if(p->p[1] > py)
|
||||||
break;
|
break;
|
||||||
x= round((p->p[0] - mb->start_x) / scale + mb->w/2);
|
x= round((p->p[0] - mb->start_x) / scale + mb->w/2);
|
||||||
if(x<0 || x >= mb->w)
|
if(x<0 || x >= mb->w)
|
||||||
|
Reference in New Issue
Block a user