X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fresampler.cc;h=e414436e8b39960c6c5f78ca16188c0781bc0407;hb=8d58a7c5f4320ad5c111e336c45e44d6b51ab509;hp=9a81df4993e5da7132938afd25db6dbf29c6d392;hpb=4616b19fb5241a54c9d57f7a91bb975f41aed14b;p=dcpomatic.git 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 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) {