[FFmpeg-cvslog] avfilter/vf_vif: add missing framesync options

Paul B Mahol git at videolan.org
Wed Dec 7 13:19:34 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Dec  7 12:18:56 2022 +0100| [f2e0351b7720390338f33017d2cfe1ad40828b6a] | committer: Paul B Mahol

avfilter/vf_vif: add missing framesync options

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

 libavfilter/vf_vif.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_vif.c b/libavfilter/vf_vif.c
index 818cc51e36..1aea4a73c6 100644
--- a/libavfilter/vf_vif.c
+++ b/libavfilter/vf_vif.c
@@ -63,7 +63,7 @@ static const AVOption vif_options[] = {
     { NULL }
 };
 
-AVFILTER_DEFINE_CLASS(vif);
+FRAMESYNC_DEFINE_CLASS(vif, VIFContext, fs);
 
 static const uint8_t vif_filter1d_width1[4] = { 17, 9, 5, 3 };
 
@@ -631,6 +631,7 @@ static const AVFilterPad vif_outputs[] = {
 const AVFilter ff_vf_vif = {
     .name          = "vif",
     .description   = NULL_IF_CONFIG_SMALL("Calculate the VIF between two video streams."),
+    .preinit       = vif_framesync_preinit,
     .uninit        = uninit,
     .priv_size     = sizeof(VIFContext),
     .priv_class    = &vif_class,



More information about the ffmpeg-cvslog mailing list