Skip to content

Commit

Permalink
inline while condition
Browse files Browse the repository at this point in the history
  • Loading branch information
devoxin committed May 5, 2024
1 parent 406fb5f commit 6859ddf
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ private void initialiseSeeker() throws IOException {
*/
public void provideFrames() throws InterruptedException {
try {
while (true) {
if (!frameReader.fillFrameBuffer()) {
break;
}

while (frameReader.fillFrameBuffer()) {
inputBuffer.clear();
inputBuffer.put(frameBuffer, 0, frameReader.getFrameSize());
inputBuffer.flip();
Expand Down

0 comments on commit 6859ddf

Please sign in to comment.