Overwrites error parameter in stb_vorbis_open_memory when there is no error. This avoid confusion due to previous values.

This commit is contained in:
Alejandro Pereda 2016-12-26 16:01:50 +01:00
parent 3e7f2d6ebd
commit 3f36b29589
1 changed files with 1 additions and 0 deletions

View File

@ -4980,6 +4980,7 @@ stb_vorbis * stb_vorbis_open_memory(const unsigned char *data, int len, int *err
if (f) {
*f = p;
vorbis_pump_first_frame(f);
if (error) *error = VORBIS__no_error;
return f;
}
}