Fixed bug in signal checking - http://www.zoneminder.com/forums/viewtopic.php?t=17158
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3287 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
240027dd98
commit
162b1b2feb
|
@ -1023,8 +1023,7 @@ bool Monitor::CheckSignal( const Image *image )
|
|||
if ( !config.timestamp_on_capture || !label_format[0] )
|
||||
break;
|
||||
// Avoid sampling the rows with timestamp in
|
||||
int y = index / (width * colours);
|
||||
if ( y < label_coord.Y() || y <= label_coord.Y()+Image::LINE_HEIGHT )
|
||||
if ( index < (label_coord.Y()*width) || index >= (label_coord.Y()+Image::LINE_HEIGHT)*width )
|
||||
break;
|
||||
}
|
||||
const unsigned char *ptr = buffer+(index*colours);
|
||||
|
|
Loading…
Reference in New Issue