Commit 36d3b712 authored by koorogi's avatar koorogi

Allow format and noformat filters to be more completely disabled when the

other is enabled.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22577 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bee5f437
......@@ -106,6 +106,7 @@ static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
avfilter_draw_slice(link->dst->outputs[0], y, h, slice_dir);
}
#if CONFIG_FORMAT_FILTER
static int query_formats_format(AVFilterContext *ctx)
{
avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 1));
......@@ -133,7 +134,9 @@ AVFilter avfilter_vf_format = {
.type = CODEC_TYPE_VIDEO },
{ .name = NULL}},
};
#endif /* CONFIG_FORMAT_FILTER */
#if CONFIG_NOFORMAT_FILTER
static int query_formats_noformat(AVFilterContext *ctx)
{
avfilter_set_common_formats(ctx, make_format_list(ctx->priv, 0));
......@@ -161,3 +164,5 @@ AVFilter avfilter_vf_noformat = {
.type = CODEC_TYPE_VIDEO },
{ .name = NULL}},
};
#endif /* CONFIG_NOFORMAT_FILTER */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment