simplify code by using the AV_NE() macro
authorAurelien Jacobs <aurel@gnuage.org>
Sun, 29 Aug 2010 18:33:39 +0000 (18:33 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Sun, 29 Aug 2010 18:33:39 +0000 (18:33 +0000)
Originally committed as revision 24971 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/raw.c

index a32b780..9698583 100644 (file)
@@ -1114,11 +1114,7 @@ AVOutputFormat null_muxer = {
     NULL,
     NULL,
     0,
-#if HAVE_BIGENDIAN
-    CODEC_ID_PCM_S16BE,
-#else
-    CODEC_ID_PCM_S16LE,
-#endif
+    AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE),
     CODEC_ID_RAWVIDEO,
     NULL,
     null_write_packet,