Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -159,8 +159,6 @@ static av_cold int config_output(AVFilterLink *outlink) · 158 unmodified lines | ||
| 159 | 159 | return 0; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | −static av_cold int query_formats(AVFilterContext *avctx) | |
| 163 | −{ | |
| 164 | 162 | static const enum AVPixelFormat pixel_fmts[] = { |
| 165 | 163 | AV_PIX_FMT_ARGB, |
| 166 | 164 | AV_PIX_FMT_RGBA, |
| @@ -169,9 +167,6 @@ static av_cold int query_formats(AVFilterContext *avctx) · 2 unmodified lines | ||
| 169 | 167 | AV_PIX_FMT_NONE |
| 170 | 168 | }; |
| 171 | 169 | |
| 172 | − return ff_set_common_formats_from_list(avctx, pixel_fmts); | |
| 173 | −} | |
| 174 | − | |
| 175 | 170 | static const AVFilterPad colorkey_inputs[] = { |
| 176 | 171 | { |
| 177 | 172 | .name = "default", |
| @@ -211,7 +206,7 @@ const AVFilter ff_vf_colorkey = { · 33 unmodified lines | ||
| 211 | 206 | .init = init_filter, |
| 212 | 207 | FILTER_INPUTS(colorkey_inputs), |
| 213 | 208 | FILTER_OUTPUTS(colorkey_outputs), |
| 214 | − FILTER_QUERY_FUNC(query_formats), | |
| 209 | + FILTER_PIXFMTS_ARRAY(pixel_fmts), | |
| 215 | 210 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 216 | 211 | .process_command = ff_filter_process_command, |
| 217 | 212 | }; |
| @@ -236,7 +231,7 @@ const AVFilter ff_vf_colorhold = { · 18 unmodified lines | ||
| 236 | 231 | .init = init_filter, |
| 237 | 232 | FILTER_INPUTS(colorkey_inputs), |
| 238 | 233 | FILTER_OUTPUTS(colorkey_outputs), |
| 239 | − FILTER_QUERY_FUNC(query_formats), | |
| 234 | + FILTER_PIXFMTS_ARRAY(pixel_fmts), | |
| 240 | 235 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS, |
| 241 | 236 | .process_command = ff_filter_process_command, |
| 242 | 237 | }; |