[MPlayer-dev-eng] [PATCH] bigendian fix for ao_jack

Chris White chriswhite at gentoo.org
Tue Mar 22 17:23:26 CET 2005


Diego Biurrun wrote:

>Hi!
>
>One more patch from Rene Rebe.
>
>Diego
>  
>
>------------------------------------------------------------------------
>
>
>Well, the usual fixes for big endian systems ...
>
>  - Rene Rebe <rene at exactcode.de>
>
>--- MPlayer-1.0pre6a/libao2/ao_jack.c	2004-12-07 03:24:15.000000000 +0100
>+++ MPlayer-1.0pre6a-fixed/libao2/ao_jack.c	2005-03-08 15:22:38.000000000 +0100
>@@ -153,7 +153,11 @@
> 			m = 1;
> 			break;
> 		default:
>+#ifndef __BIG_ENDIAN__
> 			format = AFMT_S16_LE;
>+#else
>+			format = AFMT_S16_BE;
>+#endif
> 			bits_per_sample = 16;
> 			m = 2;
> 			break;
>  
>
Actually, you don't need the #ifndef logic really, AFMT_S16_NE will just 
apply the correct endian for you based on your system.  See the patch 
attached for details.

-- 
Chris White <chriswhite at gentoo.org>
------------------------
Sound   | Video   | Security
Mozilla | Haskell | Lang-misc
ChrisWhite @ irc.freenode.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-jack.patch
Type: text/x-patch
Size: 272 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050323/51320297/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050323/51320297/attachment.pgp>


More information about the MPlayer-dev-eng mailing list