mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_xmedian: allow to control eof handling
This commit is contained in:
parent
9ac31b419c
commit
aea3cf4f18
|
@ -322,7 +322,7 @@ static int config_output(AVFilterLink *outlink)
|
||||||
in[i].time_base = inlink->time_base;
|
in[i].time_base = inlink->time_base;
|
||||||
in[i].sync = 1;
|
in[i].sync = 1;
|
||||||
in[i].before = EXT_STOP;
|
in[i].before = EXT_STOP;
|
||||||
in[i].after = EXT_STOP;
|
in[i].after = EXT_INFINITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ff_framesync_configure(&s->fs);
|
ret = ff_framesync_configure(&s->fs);
|
||||||
|
@ -389,7 +389,7 @@ static const AVFilterPad outputs[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
#if CONFIG_XMEDIAN_FILTER
|
#if CONFIG_XMEDIAN_FILTER
|
||||||
AVFILTER_DEFINE_CLASS(xmedian);
|
FRAMESYNC_DEFINE_CLASS(xmedian, XMedianContext, fs);
|
||||||
|
|
||||||
AVFilter ff_vf_xmedian = {
|
AVFilter ff_vf_xmedian = {
|
||||||
.name = "xmedian",
|
.name = "xmedian",
|
||||||
|
@ -398,6 +398,7 @@ AVFilter ff_vf_xmedian = {
|
||||||
.priv_class = &xmedian_class,
|
.priv_class = &xmedian_class,
|
||||||
.query_formats = query_formats,
|
.query_formats = query_formats,
|
||||||
.outputs = outputs,
|
.outputs = outputs,
|
||||||
|
.preinit = xmedian_framesync_preinit,
|
||||||
.init = init,
|
.init = init,
|
||||||
.uninit = uninit,
|
.uninit = uninit,
|
||||||
.activate = activate,
|
.activate = activate,
|
||||||
|
|
Loading…
Reference in New Issue