Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -41,10 +41,12 @@ typedef struct ShufflePlanesContext { · 40 unmodified lines | |||
| 41 | int copy; | 41 | int copy; |
| 42 | } ShufflePlanesContext; | 42 | } ShufflePlanesContext; |
| 43 | 43 | ||
| 44 | static int query_formats(AVFilterContext *ctx) | 44 | static int query_formats(const AVFilterContext *ctx, |
| 45 | AVFilterFormatsConfig **cfg_in, | ||
| 46 | AVFilterFormatsConfig **cfg_out) | ||
| 45 | { | 47 | { |
| 46 | AVFilterFormats *formats = NULL; | 48 | AVFilterFormats *formats = NULL; |
| 47 | ShufflePlanesContext *s = ctx->priv; | 49 | const ShufflePlanesContext *s = ctx->priv; |
| 48 | int fmt, ret, i; | 50 | int fmt, ret, i; |
| 49 | 51 | ||
| 50 | for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) { | 52 | for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) { |
| @@ -70,7 +72,7 @@ static int query_formats(AVFilterContext *ctx) · 19 unmodified lines | |||
| 70 | } | 72 | } |
| 71 | } | 73 | } |
| 72 | 74 | ||
| 73 | return ff_set_common_formats(ctx, formats); | 75 | return ff_set_common_formats2(ctx, cfg_in, cfg_out, formats); |
| 74 | } | 76 | } |
| 75 | 77 | ||
| 76 | static av_cold int shuffleplanes_config_input(AVFilterLink *inlink) | 78 | static av_cold int shuffleplanes_config_input(AVFilterLink *inlink) |
| @@ -161,6 +163,6 @@ const AVFilter ff_vf_shuffleplanes = { · 84 unmodified lines | |||
| 161 | .priv_class = &shuffleplanes_class, | 163 | .priv_class = &shuffleplanes_class, |
| 162 | FILTER_INPUTS(shuffleplanes_inputs), | 164 | FILTER_INPUTS(shuffleplanes_inputs), |
| 163 | FILTER_OUTPUTS(ff_video_default_filterpad), | 165 | FILTER_OUTPUTS(ff_video_default_filterpad), |
| 164 | FILTER_QUERY_FUNC(query_formats), | 166 | FILTER_QUERY_FUNC2(query_formats), |
| 165 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, | 167 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 166 | }; | 168 | }; |