]> git.sesse.net Git - mlt/commitdiff
avoid segfault when smooth=0
authorMarco Gittler <g.marco@freenet.de>
Fri, 11 Nov 2011 11:18:04 +0000 (12:18 +0100)
committerMarco Gittler <g.marco@freenet.de>
Fri, 11 Nov 2011 11:18:04 +0000 (12:18 +0100)
src/modules/oldfilm/filter_vignette.c

index fb749df314a5d579a52d663018b86b2928903960..d0cc38bb1dc6c30304008615a1fd9b505f93f8cb 100644 (file)
@@ -80,7 +80,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                                if (radius-smooth>dx){  //center, make not darker
                                        continue;
                                }
-                               else if (radius+smooth<dx){//max dark after smooth area
+                               else if (radius+smooth<=dx){//max dark after smooth area
                                        delta=0.0;
                                }else{
                                        // linear pos from of opacity (from 0 to 1)