mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
lavfi: rename avfilter_all_* function names to avfilter_make_all_*
A function name should tell what the function does rather than what the function returns. This also avoids possible conflicts (e.g. between a function and a public list of all supported formats), and clarifies the code. Breaks audio API/ABI, add a backward compatibility layer for video API/ABI.
This commit is contained in:

committed by
Stefano Sabatini

parent
98b906e1af
commit
9899037dc6
@ -222,10 +222,10 @@ void avfilter_set_common_packing_formats(AVFilterContext *ctx, AVFilterFormats *
|
||||
|
||||
int avfilter_default_query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
avfilter_set_common_pixel_formats(ctx, avfilter_all_formats(AVMEDIA_TYPE_VIDEO));
|
||||
avfilter_set_common_sample_formats(ctx, avfilter_all_formats(AVMEDIA_TYPE_AUDIO));
|
||||
avfilter_set_common_channel_layouts(ctx, avfilter_all_channel_layouts());
|
||||
avfilter_set_common_packing_formats(ctx, avfilter_all_packing_formats());
|
||||
avfilter_set_common_pixel_formats(ctx, avfilter_make_all_formats(AVMEDIA_TYPE_VIDEO));
|
||||
avfilter_set_common_sample_formats(ctx, avfilter_make_all_formats(AVMEDIA_TYPE_AUDIO));
|
||||
avfilter_set_common_channel_layouts(ctx, avfilter_make_all_channel_layouts());
|
||||
avfilter_set_common_packing_formats(ctx, avfilter_make_all_packing_formats());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user