X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfbits.c;h=8852237e54187748448416be069b15a548c0c231;hb=3ed992bcfe4f55c4c2ca1ccd49d4ab81796d04d3;hp=837550f4e6c8695587103462212dea2c1fc70cc7;hpb=1a9b37c8c194fcbc853c36d8a9825ef4d10476bc;p=swftools.git diff --git a/lib/modules/swfbits.c b/lib/modules/swfbits.c index 837550f..8852237 100644 --- a/lib/modules/swfbits.c +++ b/lib/modules/swfbits.c @@ -977,7 +977,7 @@ static scale_lookup_t**make_scale_lookup(int width, int newwidth) RGBA* swf_ImageScale(RGBA*data, int width, int height, int newwidth, int newheight) { - if(newwidth<2 || newheight<2) + if(newwidth<1 || newheight<1) return 0; int x,y; RGBA* newdata= (RGBA*)malloc(newwidth*newheight*sizeof(RGBA));