From 4f2d2e4ed924834dea69a0ade184aa58cbec7d2e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Tue, 17 Aug 2010 18:25:34 +0000 Subject: Define macro AV_NE() and use it in libavdevice. Help further refactoring. Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavdevice/alsa-audio.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libavdevice/alsa-audio.h') diff --git a/libavdevice/alsa-audio.h b/libavdevice/alsa-audio.h index a90d5e780a..949383157e 100644 --- a/libavdevice/alsa-audio.h +++ b/libavdevice/alsa-audio.h @@ -37,11 +37,7 @@ /* XXX: we make the assumption that the soundcard accepts this format */ /* XXX: find better solution with "preinit" method, needed also in other formats */ -#if HAVE_BIGENDIAN -#define DEFAULT_CODEC_ID CODEC_ID_PCM_S16BE -#else -#define DEFAULT_CODEC_ID CODEC_ID_PCM_S16LE -#endif +#define DEFAULT_CODEC_ID AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE) typedef struct { snd_pcm_t *h; -- cgit v1.2.3