Skip to content

Commit

Permalink
Whitespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Apr 4, 2019
1 parent cf7ff7b commit 37a63b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions audio/src/passthrough_decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ impl<R: Read + Seek> AudioDecoder for PassthroughDecoder<R> {
break;
}
}
if rd == 0 {
return Ok(None);
}

if rd == 0 {
return Ok(None);
}

// This will insert an extraneous 0 byte at EOF if the file size was not an even number of bytes
let s16 = mem::size_of::<i16>(); // Yes, I know it is always 2
rd += (s16 - (rd % s16)) % s16;
Expand Down

0 comments on commit 37a63b6

Please sign in to comment.