You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter: Constify non-const filters
This makes the filters match their declaration in libavfilter/allfilters.c; the earlier discrepancy was btw UB. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		| @@ -746,7 +746,7 @@ static const AVFilterPad libplacebo_outputs[] = { | ||||
|     }, | ||||
| }; | ||||
|  | ||||
| AVFilter ff_vf_libplacebo = { | ||||
| const AVFilter ff_vf_libplacebo = { | ||||
|     .name           = "libplacebo", | ||||
|     .description    = NULL_IF_CONFIG_SMALL("Apply various GPU filters from libplacebo"), | ||||
|     .priv_size      = sizeof(LibplaceboContext), | ||||
|   | ||||
| @@ -408,7 +408,7 @@ static const AVFilterPad overlay_vaapi_outputs[] = { | ||||
|     }, | ||||
| }; | ||||
|  | ||||
| AVFilter ff_vf_overlay_vaapi = { | ||||
| const AVFilter ff_vf_overlay_vaapi = { | ||||
|     .name            = "overlay_vaapi", | ||||
|     .description     = NULL_IF_CONFIG_SMALL("Overlay one video on top of another"), | ||||
|     .priv_size       = sizeof(OverlayVAAPIContext), | ||||
|   | ||||
| @@ -335,7 +335,7 @@ static const AVFilterPad avfilter_vf_siti_outputs[] = { | ||||
|     }, | ||||
| }; | ||||
|  | ||||
| AVFilter ff_vf_siti = { | ||||
| const AVFilter ff_vf_siti = { | ||||
|     .name          = "siti", | ||||
|     .description   = NULL_IF_CONFIG_SMALL("Calculate spatial information (SI) and temporal information (TI)."), | ||||
|     .priv_size     = sizeof(SiTiContext), | ||||
|   | ||||
| @@ -440,7 +440,7 @@ static const AVFilterPad yadif_videotoolbox_outputs[] = { | ||||
|     }, | ||||
| }; | ||||
|  | ||||
| AVFilter ff_vf_yadif_videotoolbox = { | ||||
| const AVFilter ff_vf_yadif_videotoolbox = { | ||||
|     .name           = "yadif_videotoolbox", | ||||
|     .description    = NULL_IF_CONFIG_SMALL("YADIF for VideoToolbox frames using Metal compute"), | ||||
|     .priv_size      = YADIF_VT_CTX_SIZE, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user