X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Faudio_decoder.cc;h=bd9dff8c98a695945e12c5957510ff7da84223a6;hb=61ae2097c03bc287d654a9bab72280312a21d577;hp=12580c5f64972fd64498697e1f5dce7b4635af3d;hpb=4da15178a23cee90c9104df267a7dabdbee9cc8d;p=dcpomatic.git diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index 12580c5f6..bd9dff8c9 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -79,7 +79,7 @@ AudioDecoder::get_audio (AudioFrame frame, AudioFrame length, bool accurate) */ if (accurate) { /* Keep stuffing data into _decoded_audio until we have enough data, or the subclass does not want to give us any more */ - while (_decoded_audio.frame > frame || (_decoded_audio.frame + _decoded_audio.audio->frames()) < end && !pass ()) {} + while ((_decoded_audio.frame > frame || (_decoded_audio.frame + _decoded_audio.audio->frames()) < end) && !pass ()) {} decoded_offset = frame - _decoded_audio.frame; } else { while (_decoded_audio.audio->frames() < length && !pass ()) {}