summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-01-19 20:20:35 +0100
committerPaul B Mahol <onemda@gmail.com>2021-01-19 20:37:37 +0100
commitf359575c0b890b66ccdeca1c8f83061a1525782b (patch)
treec2a1322f55ce3c32188cc1a61def4dc57db9bdf6 /libavfilter
parentc737f6edcef74a64f4d0ebcefa970bd31266d512 (diff)
avfilter/vf_nnedi: unbreak nsize=0:nns=0 output
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_nnedi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c
index 786059052b..e7f975d8d1 100644
--- a/libavfilter/vf_nnedi.c
+++ b/libavfilter/vf_nnedi.c
@@ -948,10 +948,10 @@ static void subtract_mean_predictor(PredictorCoefficients *model)
int filter_size = model->nsize;
int nns = model->nns;
- float softmax_means[256]; // Average of individual softmax filters.
- float elliott_means[256]; // Average of individual elliott filters.
- float mean_filter[48 * 6]; // Pointwise average of all softmax filters.
- float mean_bias;
+ double softmax_means[256]; // Average of individual softmax filters.
+ double elliott_means[256]; // Average of individual elliott filters.
+ double mean_filter[48 * 6]; // Pointwise average of all softmax filters.
+ double mean_bias;
// Quality 1.
for (int nn = 0; nn < nns; nn++) {
@@ -976,7 +976,7 @@ static void subtract_mean_predictor(PredictorCoefficients *model)
}
// Quality 2.
- memset(mean_filter, 0, 48 * 6 * sizeof(float));
+ memset(mean_filter, 0, sizeof(mean_filter));
for (int nn = 0; nn < nns; nn++) {
softmax_means[nn] = mean(model->softmax_q2 + nn * filter_size, filter_size);