From: | "Samuli Suominen (ssuominen)" <ssuominen@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-sound/toolame/files: toolame-02l-uint32_t.patch |
Date: | Sat, 30 May 2009 12:27:07 |
Message-Id: | E1MANeR-0004A2-6f@stork.gentoo.org |
1 | ssuominen 09/05/30 12:27:03 |
2 | |
3 | Added: toolame-02l-uint32_t.patch |
4 | Log: |
5 | Apply uint32_t patch wrt #138002 which should solve RIFF headers parsing. |
6 | (Portage version: 2.1.6.13/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 media-sound/toolame/files/toolame-02l-uint32_t.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/toolame/files/toolame-02l-uint32_t.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/toolame/files/toolame-02l-uint32_t.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: toolame-02l-uint32_t.patch |
15 | =================================================================== |
16 | diff -ur toolame-02l.orig/audio_read.c toolame-02l/audio_read.c |
17 | --- toolame-02l.orig/audio_read.c 2003-03-02 03:18:30.000000000 +0200 |
18 | +++ toolame-02l/audio_read.c 2009-05-30 15:24:41.000000000 +0300 |
19 | @@ -1,4 +1,5 @@ |
20 | #include <stdio.h> |
21 | +#include <stdint.h> |
22 | #include <stdlib.h> |
23 | #include <string.h> |
24 | #include "common.h" |
25 | @@ -329,7 +330,7 @@ |
26 | } |
27 | } |
28 | if (NativeByteOrder == order_littleEndian) { |
29 | - samplerate = *(unsigned long *) (&wave_header_buffer[24]); |
30 | + samplerate = *(uint32_t *)(&wave_header_buffer[24]); |
31 | } else { |
32 | samplerate = wave_header_buffer[27] + |
33 | (wave_header_buffer[26] << 8) + |