short buf1[nb_samples];
short *buf1;
static int mono_resample(ReSampleChannelContext *s, short *output, short *input, int nb_samples){    short buf1[nb_samples];    short *buftmp;    /* first downsample by an integer factor with averaging filter */    if (s->iratio > 1) {        buftmp = buf1;        nb_samples = integer_downsample(s, buftmp, input, nb_samples);    } else {        buftmp = input;    }    /* then do a fractional resampling with linear interpolation */    if (s->incr != FRAC) {        nb_samples = fractional_resample(s, output, buftmp, nb_samples);    } else {        memcpy(output, buftmp, nb_samples * sizeof(short));    }    return nb_samples;}