Revision 5f5e6af1 libavcodec/resample.c

View differences:

libavcodec/resample.c
251 251
        int ostride[1] = { 2 };
252 252
        const void *ibuf[1] = { input };
253 253
        void       *obuf[1];
254
        unsigned input_size = nb_samples*s->input_channels*s->sample_size[0];
254
        unsigned input_size = nb_samples*s->input_channels*2;
255 255

  
256 256
        if (!s->buffer_size[0] || s->buffer_size[0] < input_size) {
257 257
            av_free(s->buffer[0]);

Also available in: Unified diff