ffmpeg | branch: master | Paul B Mahol <[email protected]> | Thu Aug 27 18:06:15 2020 +0200| [0d46043619a137ec949f117206b8ee5b776ad7eb] | committer: Paul B Mahol
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. > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0d46043619a137ec949f117206b8ee5b776ad7eb --- libavfilter/af_compensationdelay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
