소스 검색

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

Alejandro Pereda 8 년 전
부모
커밋
3f36b29589
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
       }
    }