From e00426c512a7905f5f925d382c443bab7a0ca693 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 2 Nov 2019 11:59:07 -0500 Subject: Update opus to 1.3.1 and opusfile to 0.11 --- thirdparty/opus/stream.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'thirdparty/opus/stream.c') 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); -- cgit v1.2.3