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

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


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

lavfi/vf_copy: switch to query_func2()

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

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

diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c
index 8158414dcf..87cb9e9bd2 100644
--- a/libavfilter/vf_copy.c
+++ b/libavfilter/vf_copy.c
@@ -28,9 +28,12 @@
 #include "formats.h"
 #include "video.h"
 
-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_formats_pixdesc_filter(0, AV_PIX_FMT_FLAG_HWACCEL));
+    return ff_set_common_formats2(ctx, cfg_in, cfg_out,
+                                  ff_formats_pixdesc_filter(0, AV_PIX_FMT_FLAG_HWACCEL));
 }
 
 static int filter_frame(AVFilterLink *inlink, AVFrame *in)
@@ -72,5 +75,5 @@ const AVFilter ff_vf_copy = {
     .flags       = AVFILTER_FLAG_METADATA_ONLY,
     FILTER_INPUTS(avfilter_vf_copy_inputs),
     FILTER_OUTPUTS(ff_video_default_filterpad),
-    FILTER_QUERY_FUNC(query_formats),
+    FILTER_QUERY_FUNC2(query_formats),
 };



More information about the ffmpeg-cvslog mailing list