summaryrefslogtreecommitdiff
path: root/src/libxineadec/nosefart/diff_to_nosefart_cvs.patch
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@users.sourceforge.net>2005-05-07 09:11:37 +0000
committerFrantišek Dvořák <valtri@users.sourceforge.net>2005-05-07 09:11:37 +0000
commitf2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4 (patch)
treef77e37e2963b45a14ed2447b62f7817e80a32d34 /src/libxineadec/nosefart/diff_to_nosefart_cvs.patch
parenteed0d8c57fb0c0a7917a820dfc009baf81f223c0 (diff)
downloadxine-lib-f2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4.tar.gz
xine-lib-f2f91f2d7d1de1f0d9f4249d90e4edfd01ed0bb4.tar.bz2
*BUGFIX*
gcc4 patches from Dams Nadé (livna.org) and Keenan Pepper. CVS patchset: 7527 CVS date: 2005/05/07 09:11:37
Diffstat (limited to 'src/libxineadec/nosefart/diff_to_nosefart_cvs.patch')
-rw-r--r--src/libxineadec/nosefart/diff_to_nosefart_cvs.patch31
1 files changed, 30 insertions, 1 deletions
diff --git a/src/libxineadec/nosefart/diff_to_nosefart_cvs.patch b/src/libxineadec/nosefart/diff_to_nosefart_cvs.patch
index 9ae52bbce..280cd89cb 100644
--- a/src/libxineadec/nosefart/diff_to_nosefart_cvs.patch
+++ b/src/libxineadec/nosefart/diff_to_nosefart_cvs.patch
@@ -2,7 +2,7 @@ diff -u -p -r1.1.1.1 types.h
--- types.h 26 Jul 2004 15:27:59 -0000 1.1.1.1
+++ types.h 26 Aug 2004 16:00:07 -0000
@@ -23,8 +23,8 @@
- ** $Id: diff_to_nosefart_cvs.patch,v 1.1 2004/08/27 19:33:37 valtri Exp $
+ ** $Id: diff_to_nosefart_cvs.patch,v 1.2 2005/05/07 09:11:39 valtri Exp $
*/
-#ifndef _TYPES_H_
@@ -21,6 +21,10 @@ diff -u -p -r1.1.1.1 types.h
/*
** $Log: diff_to_nosefart_cvs.patch,v $
+ ** Revision 1.2 2005/05/07 09:11:39 valtri
+ ** *BUGFIX*
+ ** gcc4 patches from Dams Nadé (livna.org) and Keenan Pepper.
+ **
** Revision 1.1 2004/08/27 19:33:37 valtri
** MINGW32 port. Engine library and most of plugins compiles now.
**
@@ -44,3 +48,28 @@ diff -u -p -r1.1.1.1 types.h
** - move original build files from included phread and zlib into archives
** and replace them by autotools
**
+Index: nes_apu.c
+===================================================================
+RCS file: /home/valtri/CVS/xine-lib/src/libxineadec/nosefart/nes_apu.c,v
+retrieving revision 1.1.1.1
+diff -u -p -r1.1.1.1 nes_apu.c
+--- nes_apu.c 12 Dec 2004 13:57:16 -0000 1.1.1.1
++++ nes_apu.c 7 May 2005 08:23:36 -0000
+@@ -1011,10 +1011,13 @@ void apu_process(void *buffer, int num_s
+ accum = -0x8000;
+
+ /* signed 16-bit output, unsigned 8-bit */
+- if (16 == apu->sample_bits)
+- *((int16 *) buffer)++ = (int16) accum;
+- else
+- *((uint8 *) buffer)++ = (accum >> 8) ^ 0x80;
++ if (16 == apu->sample_bits) {
++ *((int16 *) buffer) = (int16) accum;
++ buffer = (int16 *) buffer + 1;
++ } else {
++ *((uint8 *) buffer) = (accum >> 8) ^ 0x80;
++ buffer = (int8 *) buffer + 1;
++ }
+ }
+
+ /* resync cycle counter */