Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -201,8 +201,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 200 unmodified lines | ||
| 201 | 201 | return ff_filter_frame(ctx->outputs[0], out); |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | −static av_cold int query_formats(AVFilterContext *avctx) | |
| 205 | −{ | |
| 206 | 204 | static const enum AVPixelFormat pixel_fmts[] = { |
| 207 | 205 | AV_PIX_FMT_GRAY8, |
| 208 | 206 | AV_PIX_FMT_GRAY9, AV_PIX_FMT_GRAY10, |
| @@ -230,9 +228,6 @@ static av_cold int query_formats(AVFilterContext *avctx) · 21 unmodified lines | ||
| 230 | 228 | AV_PIX_FMT_NONE |
| 231 | 229 | }; |
| 232 | 230 | |
| 233 | − return ff_set_common_formats_from_list(avctx, pixel_fmts); | |
| 234 | −} | |
| 235 | − | |
| 236 | 231 | static av_cold int config_input(AVFilterLink *inlink) |
| 237 | 232 | { |
| 238 | 233 | AVFilterContext *avctx = inlink->dst; |
| @@ -285,7 +280,7 @@ const AVFilter ff_vf_cas = { · 46 unmodified lines | ||
| 285 | 280 | .priv_class = &cas_class, |
| 286 | 281 | FILTER_INPUTS(cas_inputs), |
| 287 | 282 | FILTER_OUTPUTS(cas_outputs), |
| 288 | − FILTER_QUERY_FUNC(query_formats), | |
| 283 | + FILTER_PIXFMTS_ARRAY(pixel_fmts), | |
| 289 | 284 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 290 | 285 | .process_command = ff_filter_process_command, |
| 291 | 286 | }; |