[FFmpeg-devel] [PATCH] ppc bswap (WR 1.9)

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Sep 28 21:12:56 CEST 2011



On 28 Sep 2011, at 20:51, Michael Niedermayer <michaelni at gmx.at> wrote:

> Hi
> 
> Patch below is from wunderadio 1.9 i have no means to test this
> Author is unknown
> 
> 
> diff -wru ./libavutil/bswap.h /home/michael/wunderadio/WR1.9/ffmpeg//libavutil/bswap.h
> --- ./libavutil/bswap.h 2011-09-20 17:25:06.739577809 +0200
> +++ /home/michael/wunderadio/WR1.9/ffmpeg//libavutil/bswap.h    2009-02-06 02:32:39.000000000 +0100
> @@ -40,6 +40,31 @@
> #   include "x86/bswap.h"
> #endif
> 
> +
> +#ifdef __APPLE__
> +#include <TargetConditionals.h>
> +#if (TARGET_IPHONE_SIMULATOR == 0) && (TARGET_OS_IPHONE == 1)

Huh? iPhone surely isn't PPC, and if it's an ARM optimisation the condition is nonsense.
In addition this seems already properly implemented in arm/bswap.h


More information about the ffmpeg-devel mailing list