diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-09-13 01:46:29 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-09-16 00:42:47 +0200 |
commit | 9899037dc6b246f2eeb7e0255c316749372fe1ae (patch) | |
tree | f3aa2650d5fb63f567fd31fe1edabda917480203 /libavfilter/defaults.c | |
parent | 98b906e1af789e9bc9930c2d2bfa3d0798405e21 (diff) | |
download | ffmpeg-9899037dc6b246f2eeb7e0255c316749372fe1ae.tar.gz |
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.c | 8 |
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; } |