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:
authorPaul B Mahol <onemda@gmail.com>2016-12-23 20:53:20 +0300
committerPaul B Mahol <onemda@gmail.com>2016-12-23 20:53:20 +0300
commit9b26bf7e2a3904d0e4b80f8d771223d3045013db (patch)
tree87a55d5884c210c7eaee76acf92d27a770c8a3a6 /libavfilter/vf_deband.c
parentea93052db3594f93f2d10be085a770184da0513d (diff)
avfilter/vf_deband: do not use uninitialized value
Fixes coverity report. Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_deband.c')
-rw-r--r--libavfilter/vf_deband.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c
index ffec037fd4..713e80b049 100644
--- a/libavfilter/vf_deband.c
+++ b/libavfilter/vf_deband.c
@@ -192,7 +192,7 @@ static int deband_8_coupling_c(AVFilterContext *ctx, void *arg, int jobnr, int n
for (y = start; y < end; y++) {
const int pos = y * s->planewidth[0];
- for (x = 0; x < s->planewidth[p]; x++) {
+ for (x = 0; x < s->planewidth[0]; x++) {
const int x_pos = s->x_pos[pos + x];
const int y_pos = s->y_pos[pos + x];
int avg[4], cmp[4] = { 0 }, src[4];
@@ -257,7 +257,7 @@ static int deband_16_coupling_c(AVFilterContext *ctx, void *arg, int jobnr, int
for (y = start; y < end; y++) {
const int pos = y * s->planewidth[0];
- for (x = 0; x < s->planewidth[p]; x++) {
+ for (x = 0; x < s->planewidth[0]; x++) {
const int x_pos = s->x_pos[pos + x];
const int y_pos = s->y_pos[pos + x];
int avg[4], cmp[4] = { 0 }, src[4];