diff --git a/audio/src/passthrough_decoder.rs b/audio/src/passthrough_decoder.rs index ec955748b..cd8f67002 100644 --- a/audio/src/passthrough_decoder.rs +++ b/audio/src/passthrough_decoder.rs @@ -27,11 +27,11 @@ impl AudioDecoder for PassthroughDecoder { 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::(); // Yes, I know it is always 2 rd += (s16 - (rd % s16)) % s16;