[FFmpeg-cvslog] mandelbrot: remove always-false condition in fill_from_cache

Giorgio Vazzana git at videolan.org
Sun Nov 13 19:49:42 CET 2011


ffmpeg | branch: master | Giorgio Vazzana <mywing81 at gmail.com> | Sun Nov 13 13:51:09 2011 +0100| [c15400afc5afcfa6df29082faaf699390a8899a4] | committer: Michael Niedermayer

mandelbrot: remove always-false condition in fill_from_cache

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c15400afc5afcfa6df29082faaf699390a8899a4
---

 libavfilter/vsrc_mandelbrot.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index cab372d..ee0560d 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -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)



More information about the ffmpeg-cvslog mailing list