summaryrefslogtreecommitdiff
path: root/media-sound/toolame/files/toolame-02l-uint32_t.patch
blob: 624c342781d4fb3bc2211fde522578c3ceb96634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) +