mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Fix crash when playing back an .ogg with comment metadata that doesn't contain "=".
git-svn-id: https://svn.eduke32.com/eduke32@5260 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
babb9d9d61
commit
b5c5611270
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ static void MV_GetVorbisCommentLoops(VoiceNode *voice, vorbis_comment *vc)
|
|||
if (entry != NULL && entry[0] != '\0')
|
||||
{
|
||||
const char *value = strchr(entry,'=');
|
||||
|
||||
if (!value) continue;
|
||||
|
||||
const size_t field = value-entry;
|
||||
value += 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue