Explorar o código

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

Alejandro Pereda %!s(int64=8) %!d(string=hai) anos
pai
achega
3f36b29589
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      stb_vorbis.c

+ 1 - 0
stb_vorbis.c

@@ -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;
       }
    }