You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
lavfi: remove avfilter_default_* from public API on next bump.
Those functions are only useful inside filters. It is better to not support user filters until the API is more stable.
This commit is contained in:
@@ -364,7 +364,7 @@ void avfilter_set_common_formats(AVFilterContext *ctx, AVFilterFormats *formats)
|
||||
avfilter_formats_ref, formats);
|
||||
}
|
||||
|
||||
int avfilter_default_query_formats(AVFilterContext *ctx)
|
||||
int ff_default_query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
enum AVMediaType type = ctx->inputs && ctx->inputs [0] ? ctx->inputs [0]->type :
|
||||
ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
|
||||
@@ -378,3 +378,10 @@ int avfilter_default_query_formats(AVFilterContext *ctx)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if FF_API_FILTERS_PUBLIC
|
||||
int avfilter_default_query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
return ff_default_query_formats(ctx);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user