ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Mon Apr 16 09:31:11 2018 +0200| [e1c8bd2389d62b584d68486908b1d6351c027f41] | committer: Paul B Mahol
avfilter/af_headphone: fix type=time with hrir=multich Signed-off-by: Paul B Mahol <one...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1c8bd2389d62b584d68486908b1d6351c027f41 --- libavfilter/af_headphone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c index a71ed336d8..7910132218 100644 --- a/libavfilter/af_headphone.c +++ b/libavfilter/af_headphone.c @@ -567,8 +567,8 @@ static int convert_coeffs(AVFilterContext *ctx, AVFilterLink *inlink) if (s->type == TIME_DOMAIN) { offset = idx * FFALIGN(len, 16); for (j = 0; j < len; j++) { - data_ir_l[offset + j] = ptr[len * 2 - j * 2 - 2] * gain_lin; - data_ir_r[offset + j] = ptr[len * 2 - j * 2 - 1] * gain_lin; + data_ir_l[offset + j] = ptr[len * N - j * N - N + I ] * gain_lin; + data_ir_r[offset + j] = ptr[len * N - j * N - N + I + 1] * gain_lin; } } else { memset(fft_in_l, 0, n_fft * sizeof(*fft_in_l)); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog