diff options
author | unknown <sneakyfish5.sneaky@gmail.com> | 2019-11-02 11:59:07 -0500 |
---|---|---|
committer | Jonathan Mannancheril <sneakyfish5.sneaky@gmail.com> | 2019-11-09 13:06:56 -0600 |
commit | e00426c512a7905f5f925d382c443bab7a0ca693 (patch) | |
tree | 662c34929dc2b46b8eba05cd992e57f3aa7b6943 /thirdparty/opus/stream.c | |
parent | 8570b9b0c2972b7aa191475342d0dd8030fd4188 (diff) |
Update opus to 1.3.1 and opusfile to 0.11
Diffstat (limited to 'thirdparty/opus/stream.c')
-rw-r--r-- | thirdparty/opus/stream.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/thirdparty/opus/stream.c b/thirdparty/opus/stream.c index 0238a6b31b..6a85197a66 100644 --- a/thirdparty/opus/stream.c +++ b/thirdparty/opus/stream.c @@ -235,8 +235,7 @@ void *op_fopen(OpusFileCallbacks *_cb,const char *_path,const char *_mode){ fp=fopen(_path,_mode); #else fp=NULL; - if(_path==NULL||_mode==NULL)errno=EINVAL; - else{ + { wchar_t *wpath; wchar_t *wmode; wpath=op_utf8_to_utf16(_path); @@ -266,8 +265,7 @@ void *op_freopen(OpusFileCallbacks *_cb,const char *_path,const char *_mode, fp=freopen(_path,_mode,(FILE *)_stream); #else fp=NULL; - if(_path==NULL||_mode==NULL)errno=EINVAL; - else{ + { wchar_t *wpath; wchar_t *wmode; wpath=op_utf8_to_utf16(_path); |