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