summaryrefslogtreecommitdiff
path: root/multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2024-10-19 17:32:01 +0200
committerThomas Zander <riggs@FreeBSD.org>2024-10-19 17:40:53 +0200
commitd78f92cabfc61e61fa5f13705134f6b0e0e2f599 (patch)
tree0b52a38844d93d8b40b827aa66e1f302e11ad155 /multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c
parentsecurity/libressl-devel: Chase addition of OpenSSL 3.4 port (diff)
multimedia/{mplayer|mencoder}: Fix WITH_DEBUG build
Newer clang versions are not happy when passing -mcpu=<something> on i386 and amd64. This fixes the construction of CFLAGS during configure in the WITH_DEBUG case. Also, as it turns out, there was a const ptr issue in libmpcodecs/ad_spdif.c whith also needed to be fixed. PR: 280818 Reported by: cryptogranny@gmail.com
Diffstat (limited to 'multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c')
-rw-r--r--multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c b/multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c
new file mode 100644
index 000000000000..dbd61b231791
--- /dev/null
+++ b/multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c
@@ -0,0 +1,11 @@
+--- libmpcodecs/ad_spdif.c.orig 2024-09-21 09:30:04 UTC
++++ libmpcodecs/ad_spdif.c
+@@ -54,7 +54,7 @@ static int read_packet(void *p, uint8_t *buf, int buf_
+ return 0;
+ }
+
+-static int write_packet(void *p, const uint8_t *buf, int buf_size)
++static int write_packet(void *p, uint8_t *buf, int buf_size)
+ {
+ int len;
+ struct spdifContext *ctx = p;