ports/multimedia/mplayer/files/patch-libmpcodecs_ad__spdif.c
Thomas Zander d78f92cabf
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
2024-10-19 17:40:53 +02:00

11 lines
358 B
C

--- 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;