Skip to content

Commit

Permalink
Add note on diff from libopus source code
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Dec 14, 2024
1 parent dd16cc3 commit 19df706
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Target version [1.5.2](https://github.com/xiph/opus/releases/tag/v1.5.2)

This crate has the same license requirements as C source code.

All modifications to the source code are described in [opus.patch](https://github.com/DoumanAsh/opusic-sys/blob/master/opus.patch)

## Setup

If the `OPUS_LIB_DIR` environment variable is set, it will be searched for the opus
Expand Down
13 changes: 13 additions & 0 deletions opus.patch
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,16 @@ index 8535ad5..4878f80 100644
target_compile_options(opus PRIVATE -msse4.1)
endif()
endif()
diff --git a/opus/silk/x86/NSQ_del_dec_avx2.c b/opus/silk/x86/NSQ_del_dec_avx2.c
index 21f00c2..63734ee 100644
--- a/opus/silk/x86/NSQ_del_dec_avx2.c
+++ b/opus/silk/x86/NSQ_del_dec_avx2.c
@@ -72,7 +72,7 @@ static OPUS_INLINE int verify_assumptions(const silk_encoder_state *psEncC)

/* Intrinsics not defined on MSVC */
#ifdef _MSC_VER
-#include <Intsafe.h>
+#include <intsafe.h>
static inline int __builtin_sadd_overflow(opus_int32 a, opus_int32 b, opus_int32* res)
{
*res = a+b;

0 comments on commit 19df706

Please sign in to comment.