Re: [FFmpeg-devel] [PATCH] avcodec/aac_fixed: Fix a bug in spectral_to_sample()

2015-07-28 Thread Michael Niedermayer
On Tue, Jul 28, 2015 at 05:40:23PM +0200, Nedeljko Babic wrote: > From: Nedeljko Babic > > There was fixed number of loops (2048) in preparation for resampler, so > when number of samples is smaller than this, there would be an overflow on > ret_buf. > > For some reason this behavior popped out

[FFmpeg-devel] [PATCH] avcodec/aac_fixed: Fix a bug in spectral_to_sample()

2015-07-28 Thread Nedeljko Babic
From: Nedeljko Babic There was fixed number of loops (2048) in preparation for resampler, so when number of samples is smaller than this, there would be an overflow on ret_buf. For some reason this behavior popped out only under valgrind with --disable-memory-poisoning option. This is now fixed