[FFmpeg-cvslog] avfilter/vf_xmedian: allow to control eof handling

Paul B Mahol git at videolan.org
Wed Dec 30 16:54:52 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Dec 30 15:51:24 2020 +0100| [aea3cf4f18d005c01d57d52019f15cf5e84e14ec] | committer: Paul B Mahol

avfilter/vf_xmedian: allow to control eof handling

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

 libavfilter/vf_xmedian.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_xmedian.c b/libavfilter/vf_xmedian.c
index 7794f8cb43..8b6dd69709 100644
--- a/libavfilter/vf_xmedian.c
+++ b/libavfilter/vf_xmedian.c
@@ -322,7 +322,7 @@ static int config_output(AVFilterLink *outlink)
         in[i].time_base = inlink->time_base;
         in[i].sync   = 1;
         in[i].before = EXT_STOP;
-        in[i].after  = EXT_STOP;
+        in[i].after  = EXT_INFINITY;
     }
 
     ret = ff_framesync_configure(&s->fs);
@@ -389,7 +389,7 @@ static const AVFilterPad outputs[] = {
 };
 
 #if CONFIG_XMEDIAN_FILTER
-AVFILTER_DEFINE_CLASS(xmedian);
+FRAMESYNC_DEFINE_CLASS(xmedian, XMedianContext, fs);
 
 AVFilter ff_vf_xmedian = {
     .name          = "xmedian",
@@ -398,6 +398,7 @@ AVFilter ff_vf_xmedian = {
     .priv_class    = &xmedian_class,
     .query_formats = query_formats,
     .outputs       = outputs,
+    .preinit       = xmedian_framesync_preinit,
     .init          = init,
     .uninit        = uninit,
     .activate      = activate,



More information about the ffmpeg-cvslog mailing list