git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3287 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2011-02-06 16:34:26 +00:00
parent 240027dd98
commit 162b1b2feb
1 changed files with 1 additions and 2 deletions

View File

@ -1023,8 +1023,7 @@ bool Monitor::CheckSignal( const Image *image )
if ( !config.timestamp_on_capture || !label_format[0] ) if ( !config.timestamp_on_capture || !label_format[0] )
break; break;
// Avoid sampling the rows with timestamp in // Avoid sampling the rows with timestamp in
int y = index / (width * colours); if ( index < (label_coord.Y()*width) || index >= (label_coord.Y()+Image::LINE_HEIGHT)*width )
if ( y < label_coord.Y() || y <= label_coord.Y()+Image::LINE_HEIGHT )
break; break;
} }
const unsigned char *ptr = buffer+(index*colours); const unsigned char *ptr = buffer+(index*colours);