X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Foverlayframe.h;h=13c2e4bd0b26b0b5994eea343e02bdd8a4c074be;hb=78863ce9c7fde7ebd29963554c33d89569fd7cdb;hp=4775e8df0004c9f5c2c529c37b779b3b31a7be0a;hpb=3cdcd29150341dd26a8c61772f8473ab20a85fdd;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/overlayframe.h b/cinelerra-5.1/cinelerra/overlayframe.h index 4775e8df..13c2e4bd 100644 --- a/cinelerra-5.1/cinelerra/overlayframe.h +++ b/cinelerra-5.1/cinelerra/overlayframe.h @@ -32,7 +32,6 @@ #include #include #include -#include #define DIRECT_COPY 0 #define BILINEAR 1 @@ -238,7 +237,7 @@ static inline int64_t aclip(int64_t v, int mx) { return v < 0 ? 0 : v > mx ? mx : v; } static inline float aclip(float v, float mx) { - return v < -FLT_MAX+1 ? -FLT_MAX : v > FLT_MAX-1 ? FLT_MAX : v; + return v < 0 ? 0 : v > mx ? mx : v; } static inline float aclip(float v, int mx) { return v < 0 ? 0 : v > mx ? mx : v;