summaryrefslogtreecommitdiff
path: root/src/lib/resampler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-01 13:59:50 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-01 13:59:50 +0100
commit05654d0e1799746a9df3ccab040c92e0ed825cac (patch)
tree59f89a17bf9b9fd9e1056a55653724b616703a2c /src/lib/resampler.cc
parentb63118dafbd7224e9196a40895d9c7cb96504717 (diff)
parent6bc83f72f12c8513a1e9e9b6fd880697a73f968f (diff)
Merge master.
Diffstat (limited to 'src/lib/resampler.cc')
-rw-r--r--src/lib/resampler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/resampler.cc b/src/lib/resampler.cc
index 9a81df499..e414436e8 100644
--- a/src/lib/resampler.cc
+++ b/src/lib/resampler.cc
@@ -89,7 +89,7 @@ Resampler::flush ()
int64_t const pass_size = 256;
shared_ptr<AudioBuffers> pass (new AudioBuffers (_channels, 256));
- while (1) {
+ while (true) {
int const frames = swr_convert (_swr_context, (uint8_t **) pass->data(), pass_size, 0, 0);
if (frames < 0) {