summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-05-30 12:27:05 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-05-30 12:27:05 +0000
commita4e27195b5aab980537e4e7d418844ac393e4374 (patch)
tree7ec9914d2131eaa44868a615ec1f3f011a515ef2 /media-sound/toolame/files
parentremove unmaintainable svn ebuild (diff)
downloadgentoo-2-a4e27195b5aab980537e4e7d418844ac393e4374.tar.gz
gentoo-2-a4e27195b5aab980537e4e7d418844ac393e4374.tar.bz2
gentoo-2-a4e27195b5aab980537e4e7d418844ac393e4374.zip
Apply uint32_t patch wrt #138002 which should solve RIFF headers parsing.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/toolame/files')
-rw-r--r--media-sound/toolame/files/toolame-02l-uint32_t.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/media-sound/toolame/files/toolame-02l-uint32_t.patch b/media-sound/toolame/files/toolame-02l-uint32_t.patch
new file mode 100644
index 000000000000..624c342781d4
--- /dev/null
+++ b/media-sound/toolame/files/toolame-02l-uint32_t.patch
@@ -0,0 +1,18 @@
+diff -ur toolame-02l.orig/audio_read.c toolame-02l/audio_read.c
+--- toolame-02l.orig/audio_read.c 2003-03-02 03:18:30.000000000 +0200
++++ toolame-02l/audio_read.c 2009-05-30 15:24:41.000000000 +0300
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdint.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include "common.h"
+@@ -329,7 +330,7 @@
+ }
+ }
+ if (NativeByteOrder == order_littleEndian) {
+- samplerate = *(unsigned long *) (&wave_header_buffer[24]);
++ samplerate = *(uint32_t *)(&wave_header_buffer[24]);
+ } else {
+ samplerate = wave_header_buffer[27] +
+ (wave_header_buffer[26] << 8) +