]> git.sesse.net Git - vlc/commit
bandlimited: avoid large stack allocation (refs #3199)
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 17 Jan 2010 11:32:57 +0000 (13:32 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 17 Jan 2010 11:32:57 +0000 (13:32 +0200)
commitcc85d3aef83527752150396e0b0404b788755adb
tree776e9526e14cdc9daf3ca6782501fe6e2aaccd7d
parent6fa2a46b78f489a32774eba5867d6189779f9ce3
bandlimited: avoid large stack allocation (refs #3199)

In most cases, there is enough space for the 2 old samples in the
input buffer head room. In other cases, we anyway need to memory copy
the whole buffer. So we now use block_Realloc(). This also saves us from
copying every samples when resampling.

Unfortunately, the transcode plugin seems to be feeding crap into the
resampler, thus it still crashes.
modules/audio_filter/resampler/bandlimited.c