diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-08-27 18:06:15 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-08-27 18:10:24 +0200 |
commit | 0d46043619a137ec949f117206b8ee5b776ad7eb (patch) | |
tree | 20db4fee5e689479503c7b613ab80cf29b403106 /libavfilter | |
parent | 1419bf0551be3e40025e15343a97dc05764870a1 (diff) | |
download | ffmpeg-0d46043619a137ec949f117206b8ee5b776ad7eb.tar.gz |
avfilter/af_compensationdelay: always initialize w_ptr with 0
It will be changed later anyway, and in case inlink have 0 channels
(should never happen) it will not pick some random value.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_compensationdelay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_compensationdelay.c b/libavfilter/af_compensationdelay.c index 793332584b..525b3d6f3f 100644 --- a/libavfilter/af_compensationdelay.c +++ b/libavfilter/af_compensationdelay.c @@ -127,7 +127,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) const unsigned delay = s->delay; const double dry = s->dry; const double wet = s->wet; - unsigned r_ptr, w_ptr; + unsigned r_ptr, w_ptr = 0; AVFrame *out; int n, ch; |