mirror of https://github.com/nothings/stb.git
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:
parent
3e7f2d6ebd
commit
3f36b29589
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue