avresample: Reallocate the internal buffer to the correct size
authorLuca Barbato <lu_zero@gentoo.org>
Mon, 27 Apr 2015 23:55:10 +0000 (01:55 +0200)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 19 May 2015 11:13:33 +0000 (12:13 +0100)
commit744d813bcf527481f2217428fa08bfee8642935b
treed988ce40e318f0955d49c3f239506733d5eda796
parent844201e35fe575710be8218d45828df49b77f205
avresample: Reallocate the internal buffer to the correct size

Fixes the corner case in which the internal buffer size
is larger than input buffer provided and resizing it
before moving the left over samples would make it write
to now unallocated memory.

Bug-Id: 825
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavresample/resample.c