[FFmpeg-cvslog] lavfi/vf_drawtext: switch to query_func2()

Anton Khirnov git at videolan.org
Mon Oct 7 11:57:37 EEST 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Oct  4 10:09:29 2024 +0200| [87a619c549241774aa74b15ee5affe73d5ecfc4c] | committer: Anton Khirnov

lavfi/vf_drawtext: switch to query_func2()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87a619c549241774aa74b15ee5affe73d5ecfc4c
---

 libavfilter/vf_drawtext.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 4c55a01155..2b0a21a4b4 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -1077,9 +1077,12 @@ static av_cold int init(AVFilterContext *ctx)
     return 0;
 }
 
-static int query_formats(AVFilterContext *ctx)
+static int query_formats(const AVFilterContext *ctx,
+                         AVFilterFormatsConfig **cfg_in,
+                         AVFilterFormatsConfig **cfg_out)
 {
-    return ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
+    return ff_set_common_formats2(ctx, cfg_in, cfg_out,
+                                  ff_draw_supported_pixel_formats(0));
 }
 
 static int glyph_enu_border_free(void *opaque, void *elem)
@@ -1915,7 +1918,7 @@ const AVFilter ff_vf_drawtext = {
     .uninit        = uninit,
     FILTER_INPUTS(avfilter_vf_drawtext_inputs),
     FILTER_OUTPUTS(ff_video_default_filterpad),
-    FILTER_QUERY_FUNC(query_formats),
+    FILTER_QUERY_FUNC2(query_formats),
     .process_command = command,
     .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
 };



More information about the ffmpeg-cvslog mailing list