History

mandelbrot: remove always-false condition in fill_from_cache

Giorgio Vazzana committed 15 years ago

Commit c15400a1 parent 102db4f1 file · +1 −1Browse files

Unified · Split

libavfilter/vsrc_mandelbrot.c+1−1
@@ -152,7 +152,7 @@ static void fill_from_cache(AVFilterContext *ctx, uint32_t *color, int *in_cidx, · 151 unmodified lines
152152 for(; *in_cidx < mb->cache_used; (*in_cidx)++){
153153 Point *p= &mb->point_cache[*in_cidx];
154154 int x;
155− if(*in_cidx >= mb->cache_used || p->p[1] > py)
155+ if(p->p[1] > py)
156156 break;
157157 x= round((p->p[0] - mb->start_x) / scale + mb->w/2);
158158 if(x<0 || x >= mb->w)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t