lavfi/vf_drawbox.c: fix CID 1485004
CID 1485004: Uninitialized variables (UNINIT) Using uninitialized value "x" when calling "*pixel_belongs_to_region". Signed-off-by: Ting Fu <ting.fu@intel.com>
This commit is contained in:
		
							parent
							
								
									58614f7bee
								
							
						
					
					
						commit
						22d99589d8
					
				@ -126,6 +126,7 @@ static void draw_region(AVFrame *frame, DrawBoxContext *ctx, int left, int top,
 | 
			
		||||
        for (y = top; y < down; y++) {
 | 
			
		||||
            ASSIGN_THREE_CHANNELS
 | 
			
		||||
            if (ctx->invert_color) {
 | 
			
		||||
                for (x = left; x < right; x++)
 | 
			
		||||
                    if (pixel_belongs_to_region(ctx, x, y))
 | 
			
		||||
                        row[0][x] = 0xff - row[0][x];
 | 
			
		||||
            } else {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user