Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-09-13 03:46:29 +0400
committerStefano Sabatini <stefasab@gmail.com>2011-09-16 02:42:47 +0400
commit9899037dc6b246f2eeb7e0255c316749372fe1ae (patch)
treef3aa2650d5fb63f567fd31fe1edabda917480203 /libavfilter/defaults.c
parent98b906e1af789e9bc9930c2d2bfa3d0798405e21 (diff)
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.
Diffstat (limited to 'libavfilter/defaults.c')
-rw-r--r--libavfilter/defaults.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/defaults.c b/libavfilter/defaults.c
index c231f75d85..79fb38d70f 100644
--- a/libavfilter/defaults.c
+++ b/libavfilter/defaults.c
@@ -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;
}