]> git.sesse.net Git - mlt/commitdiff
remove dead code (coverity-709337)
authorDan Dennedy <dan@dennedy.org>
Mon, 23 Jul 2012 04:11:46 +0000 (21:11 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 24 Jul 2012 05:06:32 +0000 (22:06 -0700)
src/modules/oldfilm/filter_dust.c

index 5a9673175eaa5c1a657bc094b86a899a23da4407..34537b4bef1b1fdac4bd1fff24692b521bda484d 100644 (file)
@@ -163,9 +163,6 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
 
                int h = *height;
                int w = *width;
-               if (maxcount==0)
-                       return 0;
-
                int im=rand()%maxcount;
                
                while (im-- ){