Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -58,8 +58,6 @@ static const AVOption hysteresis_options[] = { · 57 unmodified lines | ||
| 58 | 58 | { NULL } |
| 59 | 59 | }; |
| 60 | 60 | |
| 61 | −static int query_formats(AVFilterContext *ctx) | |
| 62 | −{ | |
| 63 | 61 | static const enum AVPixelFormat pix_fmts[] = { |
| 64 | 62 | AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV440P, |
| 65 | 63 | AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ440P, |
| @@ -81,9 +79,6 @@ static int query_formats(AVFilterContext *ctx) · 15 unmodified lines | ||
| 81 | 79 | AV_PIX_FMT_NONE |
| 82 | 80 | }; |
| 83 | 81 | |
| 84 | − return ff_set_common_formats_from_list(ctx, pix_fmts); | |
| 85 | −} | |
| 86 | − | |
| 87 | 82 | static int process_frame(FFFrameSync *fs) |
| 88 | 83 | { |
| 89 | 84 | AVFilterContext *ctx = fs->parent; |
| @@ -377,7 +372,7 @@ const AVFilter ff_vf_hysteresis = { · 287 unmodified lines | ||
| 377 | 372 | .activate = activate, |
| 378 | 373 | FILTER_INPUTS(hysteresis_inputs), |
| 379 | 374 | FILTER_OUTPUTS(hysteresis_outputs), |
| 380 | − FILTER_QUERY_FUNC(query_formats), | |
| 375 | + FILTER_PIXFMTS_ARRAY(pix_fmts), | |
| 381 | 376 | .priv_class = &hysteresis_class, |
| 382 | 377 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, |
| 383 | 378 | }; |