mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 18:35:41 +01:00 
			
		
		
		
	AssignSegments: quiet array-bounds warning
nb (enc->segment_hdr_.num_segments_) will be in the range [1, NUM_MB_SEGMENTS]. Change-Id: I5c2bd0bb82b17c99aff39c98b6b1747fc040dc16
This commit is contained in:
		| @@ -151,6 +151,7 @@ static void AssignSegments(VP8Encoder* const enc, | ||||
|   int accum[NUM_MB_SEGMENTS], dist_accum[NUM_MB_SEGMENTS]; | ||||
|  | ||||
|   assert(nb >= 1); | ||||
|   assert(nb <= NUM_MB_SEGMENTS); | ||||
|  | ||||
|   // bracket the input | ||||
|   for (n = 0; n <= MAX_ALPHA && alphas[n] == 0; ++n) {} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user