Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -61,8 +61,6 @@ static const AVOption freezedetect_options[] = { · 60 unmodified lines | ||
| 61 | 61 | |
| 62 | 62 | AVFILTER_DEFINE_CLASS(freezedetect); |
| 63 | 63 | |
| 64 | −static int query_formats(AVFilterContext *ctx) | |
| 65 | −{ | |
| 66 | 64 | static const enum AVPixelFormat pix_fmts[] = { |
| 67 | 65 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUYV422, AV_PIX_FMT_RGB24, |
| 68 | 66 | AV_PIX_FMT_BGR24, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, |
| @@ -90,9 +88,6 @@ static int query_formats(AVFilterContext *ctx) · 21 unmodified lines | ||
| 90 | 88 | AV_PIX_FMT_NONE |
| 91 | 89 | }; |
| 92 | 90 | |
| 93 | − return ff_set_common_formats_from_list(ctx, pix_fmts); | |
| 94 | −} | |
| 95 | − | |
| 96 | 91 | static int config_input(AVFilterLink *inlink) |
| 97 | 92 | { |
| 98 | 93 | AVFilterContext *ctx = inlink->dst; |
| @@ -224,6 +219,6 @@ const AVFilter ff_vf_freezedetect = { · 125 unmodified lines | ||
| 224 | 219 | .uninit = uninit, |
| 225 | 220 | FILTER_INPUTS(freezedetect_inputs), |
| 226 | 221 | FILTER_OUTPUTS(freezedetect_outputs), |
| 227 | − FILTER_QUERY_FUNC(query_formats), | |
| 222 | + FILTER_PIXFMTS_ARRAY(pix_fmts), | |
| 228 | 223 | .activate = activate, |
| 229 | 224 | }; |