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] )
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);