Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2017-12-03 18:55:37 +0300
committerMartin Vignali <martin.vignali@gmail.com>2017-12-03 21:17:11 +0300
commitfa470384ea3f4bed8507495db19c187f69ed1307 (patch)
tree1fcf55e9d582515c7988fde0047a225c4445b831 /libavfilter/vf_threshold.c
parent42a22d01d1a0d49b83121228df816d8183f0b85c (diff)
avfilter/vf_threshold : move context func init in ff_threshold_init
Diffstat (limited to 'libavfilter/vf_threshold.c')
-rw-r--r--libavfilter/vf_threshold.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavfilter/vf_threshold.c b/libavfilter/vf_threshold.c
index 4183b353d2..58b5d14836 100644
--- a/libavfilter/vf_threshold.c
+++ b/libavfilter/vf_threshold.c
@@ -185,6 +185,13 @@ static int config_input(AVFilterLink *inlink)
s->width[0] = s->width[3] = inlink->w;
s->depth = desc->comp[0].depth;
+ ff_threshold_init(s);
+
+ return 0;
+}
+
+void ff_threshold_init(ThresholdContext *s)
+{
if (s->depth == 8) {
s->threshold = threshold8;
s->bpc = 1;
@@ -195,8 +202,6 @@ static int config_input(AVFilterLink *inlink)
if (ARCH_X86)
ff_threshold_init_x86(s);
-
- return 0;
}
static int config_output(AVFilterLink *outlink)