FreeBSD Bugzilla – Attachment 171399 Details for
Bug 210261
(MAINTAINER)(PATCH) multimedia/zoneminder unbreak under 11-a3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch2
zm.patch (text/plain), 976 bytes, created by
Ivan
on 2016-06-13 20:24:26 UTC
(
hide
)
Description:
patch2
Filename:
MIME Type:
Creator:
Ivan
Created:
2016-06-13 20:24:26 UTC
Size:
976 bytes
patch
obsolete
>diff -ruN zoneminder.orig/files/patch-src_zm__image.cpp zoneminder/files/patch-src_zm__image.cpp >--- zoneminder.orig/files/patch-src_zm__image.cpp 1970-01-01 03:00:00.000000000 +0300 >+++ zoneminder/files/patch-src_zm__image.cpp 2016-06-13 23:07:57.839515000 +0300 >@@ -0,0 +1,18 @@ >+--- src/zm_image.cpp.orig 2016-06-01 00:41:17 UTC >++++ src/zm_image.cpp >+@@ -1619,12 +1619,9 @@ Image *Image::Highlight( unsigned int n_ >+ for ( unsigned int j = 0; j < n_images; j++ ) >+ { >+ uint8_t *psrc = images[j]->buffer+c; >+- >+-#ifndef SOLARIS >+- if ( (unsigned)abs((*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 >++ unsigned int diff = ((*psrc)-RGB_VAL(ref_colour,c)) > 0 ? (*psrc)-RGB_VAL(ref_colour,c) : RGB_VAL(ref_colour,c) - (*psrc); >++ >++ if (diff >= RGB_VAL(threshold,c)) >+ { >+ count++; >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
bsd
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 210261
:
171398
|
171399
|
171465