Skip to content

Commit

Permalink
SoundRender_Source.cpp: Add BUG.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Jan 14, 2016
1 parent 752854b commit bdd8343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrSound/SoundRender_Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void CSoundRender_Source::i_decompress_fr(OggVorbis_File* ovf, char* _dest, u32
while (TotalRet < (long)left)
{
ret = ov_read(ovf, /*PCM*/ _dest+ TotalRet, left - TotalRet, 0, 2, 1, &current_section);

// BUG: ov_read can return negative value indicating an error, making this loop infinite
// if end of file or read limit exceeded
if (ret == 0) break;
else if (ret < 0) // Error in bitstream
Expand Down

0 comments on commit bdd8343

Please sign in to comment.