[FFmpeg-cvslog] avfilter/vf_deband: do not use uninitialized value
Paul B Mahol
git at videolan.org
Fri Dec 23 19:54:48 EET 2016
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Dec 23 18:53:20 2016 +0100| [9b26bf7e2a3904d0e4b80f8d771223d3045013db] | committer: Paul B Mahol
avfilter/vf_deband: do not use uninitialized value
Fixes coverity report.
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b26bf7e2a3904d0e4b80f8d771223d3045013db
---
libavfilter/vf_deband.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_deband.c b/libavfilter/vf_deband.c
index ffec037..713e80b 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];
More information about the ffmpeg-cvslog
mailing list