[FFmpeg-cvslog] lavfi/vf_subtitles: convert to query_func2()
Anton Khirnov
git at videolan.org
Thu Oct 17 12:12:34 EEST 2024
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Oct 15 11:24:35 2024 +0200| [05aad90c69bd5e6377a2b6d9e498ff4076015bde] | committer: Anton Khirnov
lavfi/vf_subtitles: convert to query_func2()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05aad90c69bd5e6377a2b6d9e498ff4076015bde
---
libavfilter/vf_subtitles.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c
index de1cfa7d9e..d7f61d2f22 100644
--- a/libavfilter/vf_subtitles.c
+++ b/libavfilter/vf_subtitles.c
@@ -138,9 +138,12 @@ static av_cold void uninit(AVFilterContext *ctx)
ass_library_done(ass->library);
}
-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 config_input(AVFilterLink *inlink)
@@ -255,7 +258,7 @@ const AVFilter ff_vf_ass = {
.uninit = uninit,
FILTER_INPUTS(ass_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
.priv_class = &ass_class,
};
#endif
@@ -510,7 +513,7 @@ const AVFilter ff_vf_subtitles = {
.uninit = uninit,
FILTER_INPUTS(ass_inputs),
FILTER_OUTPUTS(ff_video_default_filterpad),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_QUERY_FUNC2(query_formats),
.priv_class = &subtitles_class,
};
#endif
More information about the ffmpeg-cvslog
mailing list