diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-01-25 07:15:23 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-01-25 08:33:24 +0100 |
commit | 4ba771bb1d8bd3ee9c08f2ba65b3b3b615377b67 (patch) | |
tree | 1b44f13d4962eb8c3d9f0d096aa763d73e593062 /pcr/zoneminder/fabs.patch | |
parent | d970f0c8379bf0fdcae34c3ee161d74cf7f60eef (diff) | |
download | abslibre-4ba771bb1d8bd3ee9c08f2ba65b3b3b615377b67.tar.gz abslibre-4ba771bb1d8bd3ee9c08f2ba65b3b3b615377b67.tar.bz2 abslibre-4ba771bb1d8bd3ee9c08f2ba65b3b3b615377b67.zip |
pcr/zoneminder: updated to 1.30.4
Diffstat (limited to 'pcr/zoneminder/fabs.patch')
-rw-r--r-- | pcr/zoneminder/fabs.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/zoneminder/fabs.patch b/pcr/zoneminder/fabs.patch new file mode 100644 index 000000000..b0a62e3db --- /dev/null +++ b/pcr/zoneminder/fabs.patch @@ -0,0 +1,11 @@ +--- src/ZoneMinder-1.30.4/src/zm_image.cpp 2017-06-17 04:20:45.808503543 -0300 ++++ src/ZoneMinder-1.30.4/src/zm_image.cpp.2 2017-06-17 04:20:40.221794330 -0300 +@@ -1659,7 +1659,7 @@ + uint8_t *psrc = images[j]->buffer+c; + + #ifndef SOLARIS +- if ( (unsigned)abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) ) ++ if ( (unsigned)fabs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) ) + #else + if ( (unsigned)std::abs((*psrc)-RGB_VAL(ref_colour,c)) >= RGB_VAL(threshold,c) ) + #endif |