diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-12 07:55:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-12 07:55:25 +0100 |
commit | ba4c808721592a8558686b518d12f36e0fe60957 (patch) | |
tree | 90bfefa3d3b0d524c562b6280776807595a10400 /thirdparty/opus/stream.c | |
parent | 067c259ef139a1d60b64386ff596dfea690aa06d (diff) | |
parent | e00426c512a7905f5f925d382c443bab7a0ca693 (diff) |
Merge pull request #33311 from SneakyFish5/update-opus
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); |