]> code.delx.au - pulseaudio/commit
resampler: Never return zero for max block size
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Wed, 28 Aug 2013 11:11:54 +0000 (14:11 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sun, 8 Sep 2013 08:10:10 +0000 (11:10 +0300)
commitd448ef04e9e8f42664b52347f43aabcf33e94bdc
tree7ff411263e9b109b629caf66904bb5f35332d710
parentb8bf331b393943285a4a7efbec1f0032be5599d9
resampler: Never return zero for max block size

With very low input sample rates the memory pool max block size may
not be big enough, in which case we should return the size of one
frame. Returning zero caused crashing.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=68616
src/pulsecore/resampler.c