mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	yadif: add parens around macro parameters
This fixes compilation with preprocessors which do not add whitespace around replaced tokens, resulting in invalid expressions like 1--1. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
		| @@ -73,12 +73,12 @@ static void filter_line_c(uint8_t *dst, | |||||||
|                           + FFABS(cur[-refs+1] - cur[+refs+1]) - 1; |                           + FFABS(cur[-refs+1] - cur[+refs+1]) - 1; | ||||||
|  |  | ||||||
| #define CHECK(j)\ | #define CHECK(j)\ | ||||||
|     {   int score = FFABS(cur[-refs-1+j] - cur[+refs-1-j])\ |     {   int score = FFABS(cur[-refs-1+(j)] - cur[+refs-1-(j)])\ | ||||||
|                   + FFABS(cur[-refs  +j] - cur[+refs  -j])\ |                   + FFABS(cur[-refs  +(j)] - cur[+refs  -(j)])\ | ||||||
|                   + FFABS(cur[-refs+1+j] - cur[+refs+1-j]);\ |                   + FFABS(cur[-refs+1+(j)] - cur[+refs+1-(j)]);\ | ||||||
|         if (score < spatial_score) {\ |         if (score < spatial_score) {\ | ||||||
|             spatial_score= score;\ |             spatial_score= score;\ | ||||||
|             spatial_pred= (cur[-refs  +j] + cur[+refs  -j])>>1;\ |             spatial_pred= (cur[-refs  +(j)] + cur[+refs  -(j)])>>1;\ | ||||||
|  |  | ||||||
|         CHECK(-1) CHECK(-2) }} }} |         CHECK(-1) CHECK(-2) }} }} | ||||||
|         CHECK( 1) CHECK( 2) }} }} |         CHECK( 1) CHECK( 2) }} }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mans Rullgard
					Mans Rullgard