aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch')
-rw-r--r--vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch b/vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch
new file mode 100644
index 0000000..31128a8
--- /dev/null
+++ b/vcpkg/ports/smpeg2/003-fix-double-ptr-to-int-comparison.patch
@@ -0,0 +1,13 @@
+diff --git a/audio/mpegtoraw.cpp b/audio/mpegtoraw.cpp
+index 493c870..a4eabdc 100644
+--- a/audio/mpegtoraw.cpp
++++ b/audio/mpegtoraw.cpp
+@@ -448,7 +448,7 @@ int Play_MPEGaudio(MPEGaudio *audio, Uint8 *stream, int len)
+ if (audio->timestamp[0] != -1){
+ double timeshift = audio->Time() - audio->timestamp[0];
+ double correction = 0;
+- assert(audio->timestamp >= 0);
++ assert(audio->timestamp[0] >= 0);
+ if (fabs(timeshift) > 1.0){
+ correction = -timeshift;
+ #ifdef DEBUG_TIMESTAMP_SYNC