Unified · Split
| @@ -83,11 +83,14 @@ static const AVOption il_options[] = { · 82 unmodified lines | |||
| 83 | 83 | ||
| 84 | AVFILTER_DEFINE_CLASS(il); | 84 | AVFILTER_DEFINE_CLASS(il); |
| 85 | 85 | ||
| 86 | static int query_formats(AVFilterContext *ctx) | 86 | static int query_formats(const AVFilterContext *ctx, |
| 87 | AVFilterFormatsConfig **cfg_in, | ||
| 88 | AVFilterFormatsConfig **cfg_out) | ||
| 87 | { | 89 | { |
| 88 | int reject_flags = AV_PIX_FMT_FLAG_PAL | AV_PIX_FMT_FLAG_HWACCEL; | 90 | int reject_flags = AV_PIX_FMT_FLAG_PAL | AV_PIX_FMT_FLAG_HWACCEL; |
| 89 | 91 | ||
| 90 | return ff_set_common_formats(ctx, ff_formats_pixdesc_filter(0, reject_flags)); | 92 | return ff_set_common_formats2(ctx, cfg_in, cfg_out, |
| 93 | ff_formats_pixdesc_filter(0, reject_flags)); | ||
| 91 | } | 94 | } |
| 92 | 95 | ||
| 93 | static int config_input(AVFilterLink *inlink) | 96 | static int config_input(AVFilterLink *inlink) |
| @@ -191,7 +194,7 @@ const AVFilter ff_vf_il = { · 97 unmodified lines | |||
| 191 | .priv_size = sizeof(IlContext), | 194 | .priv_size = sizeof(IlContext), |
| 192 | FILTER_INPUTS(inputs), | 195 | FILTER_INPUTS(inputs), |
| 193 | FILTER_OUTPUTS(ff_video_default_filterpad), | 196 | FILTER_OUTPUTS(ff_video_default_filterpad), |
| 194 | FILTER_QUERY_FUNC(query_formats), | 197 | FILTER_QUERY_FUNC2(query_formats), |
| 195 | .priv_class = &il_class, | 198 | .priv_class = &il_class, |
| 196 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, | 199 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 197 | .process_command = ff_filter_process_command, | 200 | .process_command = ff_filter_process_command, |