Skip to content

Commit bdd8343

Browse files
author
nitrocaster
committed
SoundRender_Source.cpp: Add BUG.
1 parent 752854b commit bdd8343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrSound/SoundRender_Source.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void CSoundRender_Source::i_decompress_fr(OggVorbis_File* ovf, char* _dest, u32
5757
while (TotalRet < (long)left)
5858
{
5959
ret = ov_read(ovf, /*PCM*/ _dest+ TotalRet, left - TotalRet, 0, 2, 1, &current_section);
60-
60+
// BUG: ov_read can return negative value indicating an error, making this loop infinite
6161
// if end of file or read limit exceeded
6262
if (ret == 0) break;
6363
else if (ret < 0) // Error in bitstream

0 commit comments

Comments
 (0)