[FFmpeg-devel] [PATCH 1/1] Define macro AV_CODEC_ID_NE() and use it in alsa-audio.h.

Michael Niedermayer michaelni
Tue Aug 17 19:24:13 CEST 2010


On Tue, Aug 17, 2010 at 04:39:32PM +0200, Stefano Sabatini wrote:
> On date Tuesday 2010-08-17 00:19:01 +0200, Aurelien Jacobs encoded:
> > On Tue, Aug 17, 2010 at 12:15:37AM +0200, Stefano Sabatini wrote:
> [...]
> > > +#if AV_HAVE_BIGENDIAN
> > > +#   define AV_CODEC_ID_NE(be, le) CODEC_ID_##be
> > > +#else
> > > +#   define AV_CODEC_ID_NE(be, le) CODEC_ID_##le
> > > +#endif
> > 
> > Maybe it could be defined in a more generic way, in libavutil, such as:
> > 
> > #if AV_HAVE_BIGENDIAN
> > #   define AV_NE(be, le) be
> > #else
> > #   define AV_NE(be, le) le
> > #endif
> > 
> > I have no example right now, but I guess it could be useful for
> > something else than CODEC_ID...
> 
> Updated.
> -- 
> FFmpeg = Fanciful and Frenzy Magnificient Peaceless Everlasting Genius

>  libavdevice/alsa-audio.h |    6 +-----
>  libavdevice/oss_audio.c  |    6 +-----
>  libavutil/common.h       |    6 ++++++
>  3 files changed, 8 insertions(+), 10 deletions(-)
> e0a71c89fcd2d13e76fa5266c2c41f244f374f4d  0001-Define-macro-AV_NE-and-use-it-in-libavdevice.patch
> From 27088a95e88ab50d739413eaefed75c95504bf43 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Thu, 12 Aug 2010 17:41:22 +0200
> Subject: [PATCH 1/1] Define macro AV_NE() and use it in libavdevice.

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100817/a9fa00b9/attachment.pgp>



More information about the ffmpeg-devel mailing list