Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -73,8 +73,6 @@ static const AVOption w3fdif_options[] = { · 72 unmodified lines | ||
| 73 | 73 | |
| 74 | 74 | AVFILTER_DEFINE_CLASS(w3fdif); |
| 75 | 75 | |
| 76 | −static int query_formats(AVFilterContext *ctx) | |
| 77 | −{ | |
| 78 | 76 | static const enum AVPixelFormat pix_fmts[] = { |
| 79 | 77 | AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P, |
| 80 | 78 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, |
| @@ -101,9 +99,6 @@ static int query_formats(AVFilterContext *ctx) · 20 unmodified lines | ||
| 101 | 99 | AV_PIX_FMT_NONE |
| 102 | 100 | }; |
| 103 | 101 | |
| 104 | − return ff_set_common_formats_from_list(ctx, pix_fmts); | |
| 105 | −} | |
| 106 | − | |
| 107 | 102 | static void filter_simple_low(int32_t *work_line, |
| 108 | 103 | uint8_t *in_lines_cur[2], |
| 109 | 104 | const int16_t *coef, int linesize) |
| @@ -617,7 +612,7 @@ const AVFilter ff_vf_w3fdif = { · 507 unmodified lines | ||
| 617 | 612 | .uninit = uninit, |
| 618 | 613 | FILTER_INPUTS(w3fdif_inputs), |
| 619 | 614 | FILTER_OUTPUTS(w3fdif_outputs), |
| 620 | − FILTER_QUERY_FUNC(query_formats), | |
| 615 | + FILTER_PIXFMTS_ARRAY(pix_fmts), | |
| 621 | 616 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, |
| 622 | 617 | .process_command = ff_filter_process_command, |
| 623 | 618 | }; |