You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/vf_removelogo: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		| @@ -203,12 +203,6 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize, | ||||
|     *max_mask_size = apply_mask_fudge_factor(current_pass + 1); | ||||
| } | ||||
|  | ||||
| static int query_formats(AVFilterContext *ctx) | ||||
| { | ||||
|     static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }; | ||||
|     return ff_set_common_formats_from_list(ctx, pix_fmts); | ||||
| } | ||||
|  | ||||
| static int load_mask(uint8_t **mask, int *w, int *h, | ||||
|                      const char *filename, void *log_ctx) | ||||
| { | ||||
| @@ -576,7 +570,7 @@ const AVFilter ff_vf_removelogo = { | ||||
|     .uninit        = uninit, | ||||
|     FILTER_INPUTS(removelogo_inputs), | ||||
|     FILTER_OUTPUTS(removelogo_outputs), | ||||
|     FILTER_QUERY_FUNC(query_formats), | ||||
|     FILTER_SINGLE_PIXFMT(AV_PIX_FMT_YUV420P), | ||||
|     .priv_class    = &removelogo_class, | ||||
|     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user