Unified · Split
| @@ -1077,9 +1077,12 @@ static av_cold int init(AVFilterContext *ctx) · 1076 unmodified lines | |||
| 1077 | return 0; | 1077 | return 0; |
| 1078 | } | 1078 | } |
| 1079 | 1079 | ||
| 1080 | static int query_formats(AVFilterContext *ctx) | 1080 | static int query_formats(const AVFilterContext *ctx, |
| 1081 | AVFilterFormatsConfig **cfg_in, | ||
| 1082 | AVFilterFormatsConfig **cfg_out) | ||
| 1081 | { | 1083 | { |
| 1082 | return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0)); | 1084 | return ff_set_common_formats2(ctx, cfg_in, cfg_out, |
| 1085 | ff_draw_supported_pixel_formats(0)); | ||
| 1083 | } | 1086 | } |
| 1084 | 1087 | ||
| 1085 | static int glyph_enu_border_free(void *opaque, void *elem) | 1088 | static int glyph_enu_border_free(void *opaque, void *elem) |
| @@ -1915,7 +1918,7 @@ const AVFilter ff_vf_drawtext = { · 829 unmodified lines | |||
| 1915 | .uninit = uninit, | 1918 | .uninit = uninit, |
| 1916 | FILTER_INPUTS(avfilter_vf_drawtext_inputs), | 1919 | FILTER_INPUTS(avfilter_vf_drawtext_inputs), |
| 1917 | FILTER_OUTPUTS(ff_video_default_filterpad), | 1920 | FILTER_OUTPUTS(ff_video_default_filterpad), |
| 1918 | FILTER_QUERY_FUNC(query_formats), | 1921 | FILTER_QUERY_FUNC2(query_formats), |
| 1919 | .process_command = command, | 1922 | .process_command = command, |
| 1920 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, | 1923 | .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, |
| 1921 | }; | 1924 | }; |