Unified · Split
| @@ -87,8 +87,6 @@ static const AVRational standard_tbs[] = { · 86 unmodified lines | ||
| 87 | 87 | {1001, 30000}, |
| 88 | 88 | }; |
| 89 | 89 | |
| 90 | −static int query_formats(AVFilterContext *ctx) | |
| 91 | −{ | |
| 92 | 90 | static const enum AVPixelFormat pix_fmts[] = { |
| 93 | 91 | AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, |
| 94 | 92 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, |
| @@ -103,9 +101,6 @@ static int query_formats(AVFilterContext *ctx) · 8 unmodified lines | ||
| 103 | 101 | AV_PIX_FMT_NONE |
| 104 | 102 | }; |
| 105 | 103 | |
| 106 | − return ff_set_common_formats_from_list(ctx, pix_fmts); | |
| 107 | −} | |
| 108 | − | |
| 109 | 104 | static void lowpass_line_c(uint8_t *dstp, ptrdiff_t width, const uint8_t *srcp, |
| 110 | 105 | ptrdiff_t mref, ptrdiff_t pref, int clip_max) |
| 111 | 106 | { |
| @@ -557,7 +552,7 @@ const AVFilter ff_vf_tinterlace = { · 445 unmodified lines | ||
| 557 | 552 | .uninit = uninit, |
| 558 | 553 | FILTER_INPUTS(tinterlace_inputs), |
| 559 | 554 | FILTER_OUTPUTS(tinterlace_outputs), |
| 560 | − FILTER_QUERY_FUNC(query_formats), | |
| 555 | + FILTER_PIXFMTS_ARRAY(pix_fmts), | |
| 561 | 556 | .priv_class = &tinterlace_class, |
| 562 | 557 | }; |
| 563 | 558 | |
| @@ -570,6 +565,6 @@ const AVFilter ff_vf_interlace = { · 6 unmodified lines | ||
| 570 | 565 | .uninit = uninit, |
| 571 | 566 | FILTER_INPUTS(tinterlace_inputs), |
| 572 | 567 | FILTER_OUTPUTS(tinterlace_outputs), |
| 573 | − FILTER_QUERY_FUNC(query_formats), | |
| 568 | + FILTER_PIXFMTS_ARRAY(pix_fmts), | |
| 574 | 569 | .priv_class = &interlace_class, |
| 575 | 570 | }; |