]> git.sesse.net Git - vlc/commitdiff
Fix Avcodec module compilation.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 6 Dec 2008 13:22:10 +0000 (14:22 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 6 Dec 2008 13:22:10 +0000 (14:22 +0100)
modules/codec/avcodec/avcodec.h
modules/codec/avcodec/fourcc.c

index 053249944d0d233ab724f3deafceb9653978a7ba..ce3a44bbcd0156b8065a62fca1730afb4d18ce32 100644 (file)
@@ -251,3 +251,7 @@ extern vlc_mutex_t avcodec_lock;
     AVCodecContext *p_context;  \
     AVCodec        *p_codec;
 
+#ifndef AV_VERSION_INT
+#   define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
+#endif
+
index 579a1759299fae62f652e2f749b5d0399c13c2a5..5ab3f5c15149aa0da3d461576dc0c9b6bafee4ba 100644 (file)
 #endif
 #include "avcodec.h"
 
-#ifndef AV_VERSION_INT
-#   define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
-#endif
-
 /*****************************************************************************
  * Codec fourcc -> ffmpeg_id mapping
  *****************************************************************************/