avfilter/vsrc_testsrc: do not round down width and height for color src
ff_draw_rectangle handles subsampling since 2013. Fixes ticket #10989. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
		
							parent
							
								
									20fbc07af1
								
							
						
					
					
						commit
						77fc047bd9
					
				| @ -260,8 +260,6 @@ static int color_config_props(AVFilterLink *inlink) | |||||||
|                   inlink->color_range, 0); |                   inlink->color_range, 0); | ||||||
|     ff_draw_color(&test->draw, &test->color, test->color_rgba); |     ff_draw_color(&test->draw, &test->color, test->color_rgba); | ||||||
| 
 | 
 | ||||||
|     test->w = ff_draw_round_to_sub(&test->draw, 0, -1, test->w); |  | ||||||
|     test->h = ff_draw_round_to_sub(&test->draw, 1, -1, test->h); |  | ||||||
|     if (av_image_check_size(test->w, test->h, 0, ctx) < 0) |     if (av_image_check_size(test->w, test->h, 0, ctx) < 0) | ||||||
|         return AVERROR(EINVAL); |         return AVERROR(EINVAL); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user