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

Stefano Sabatini stefano.sabatini-lala
Tue Aug 17 16:39:32 CEST 2010


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



More information about the ffmpeg-devel mailing list