1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00

avfilter/af_aiir: fix invalid memory access with tf filtering

This commit is contained in:
Paul B Mahol 2020-05-19 20:03:59 +02:00
parent 5646d02cb3
commit b559a5882f

View File

@ -129,8 +129,8 @@ static int iir_ch_## name(AVFilterContext *ctx, void *arg, int ch, int nb_jobs)
ThreadData *td = arg; \ ThreadData *td = arg; \
AVFrame *in = td->in, *out = td->out; \ AVFrame *in = td->in, *out = td->out; \
const type *src = (const type *)in->extended_data[ch]; \ const type *src = (const type *)in->extended_data[ch]; \
double *ic = (double *)s->iir[ch].cache[0]; \ double *oc = (double *)s->iir[ch].cache[0]; \
double *oc = (double *)s->iir[ch].cache[1]; \ double *ic = (double *)s->iir[ch].cache[1]; \
const int nb_a = s->iir[ch].nb_ab[0]; \ const int nb_a = s->iir[ch].nb_ab[0]; \
const int nb_b = s->iir[ch].nb_ab[1]; \ const int nb_b = s->iir[ch].nb_ab[1]; \
const double *a = s->iir[ch].ab[0]; \ const double *a = s->iir[ch].ab[0]; \