From 94e9b1305b2c4bd2b45db58cb86fad0fb7ca05c3 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 8 Jun 2011 16:57:18 -0500 Subject: main/audacious-plugins: fix for upstream AUDPLUG-369 --- .../audacious-plugins-2.5.1-vorbis.patch | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 main/audacious-plugins/audacious-plugins-2.5.1-vorbis.patch (limited to 'main/audacious-plugins/audacious-plugins-2.5.1-vorbis.patch') diff --git a/main/audacious-plugins/audacious-plugins-2.5.1-vorbis.patch b/main/audacious-plugins/audacious-plugins-2.5.1-vorbis.patch new file mode 100644 index 0000000000..0e35adff3d --- /dev/null +++ b/main/audacious-plugins/audacious-plugins-2.5.1-vorbis.patch @@ -0,0 +1,54 @@ +From 6ed2a39924b29f185e5a87bd8dccffaa0f1011ca Mon Sep 17 00:00:00 2001 +From: John Lindgren +Date: Wed, 08 Jun 2011 18:49:57 +0000 +Subject: vorbis: Patch from Michael Schwendt to fix crash on 32-bit systems. Closes: AUDPLUG-369. + +--- +diff --git a/src/vorbis/vcedit.c b/src/vorbis/vcedit.c +index 9dd6c01..dc14d2f 100644 +--- a/src/vorbis/vcedit.c ++++ b/src/vorbis/vcedit.c +@@ -145,7 +145,7 @@ _fetch_next_packet(vcedit_state * s, ogg_packet * p, ogg_page * page) + { + int result; + char *buffer; +- int bytes; ++ gint64 bytes; + + result = ogg_stream_packetout(s->os, p); + +@@ -189,7 +189,7 @@ vcedit_open_callbacks(vcedit_state * state, void *in, + vcedit_write_func write_func) + { + char *buffer; +- int bytes, i; ++ gint64 bytes, i; + ogg_packet *header; + ogg_packet header_main; + ogg_packet header_comments; +@@ -317,7 +317,7 @@ vcedit_write(vcedit_state * state, void *out) + ogg_int64_t granpos = 0; + int result; + char *buffer; +- int bytes; ++ gint64 bytes; + int needflush = 0, needout = 0; + + state->eosin = 0; +diff --git a/src/vorbis/vcedit.h b/src/vorbis/vcedit.h +index 983a2ee..ea4432f 100644 +--- a/src/vorbis/vcedit.h ++++ b/src/vorbis/vcedit.h +@@ -19,8 +19,8 @@ extern "C" { + #include + #include + +-typedef size_t (*vcedit_read_func)(void *, size_t, size_t, void *); +-typedef size_t (*vcedit_write_func)(const void *, size_t, size_t, void *); ++typedef gint64 (*vcedit_read_func)(void *, gint64, gint64, void *); ++typedef gint64 (*vcedit_write_func)(const void *, gint64, gint64, void *); + + typedef struct { + ogg_sync_state *oy; +-- +cgit v0.8.3.4 -- cgit v1.2.3