Skip to content

Commit ce2652b

Browse files
authored
Merge pull request #193 from phcoder/oggnull
Add guard for empty ogg stream
2 parents ba4a22a + 80e91b9 commit ce2652b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

audio/audio_mixer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,9 @@ static void audio_mixer_mix_ogg(float* buffer, size_t num_frames,
998998
unsigned temp_samples = 0;
999999
float* pcm = NULL;
10001000

1001+
if (!voice->types.ogg.stream)
1002+
return;
1003+
10011004
if (voice->types.ogg.position == voice->types.ogg.samples)
10021005
{
10031006
again:

0 commit comments

Comments
 (0)