From e7d3f3d54df719db6a688272922bd0427b0076ab Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 6 Dec 2008 14:22:10 +0100 Subject: [PATCH] Fix Avcodec module compilation. --- modules/codec/avcodec/avcodec.h | 4 ++++ modules/codec/avcodec/fourcc.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/codec/avcodec/avcodec.h b/modules/codec/avcodec/avcodec.h index 053249944d..ce3a44bbcd 100644 --- a/modules/codec/avcodec/avcodec.h +++ b/modules/codec/avcodec/avcodec.h @@ -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 + diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c index 579a175929..5ab3f5c151 100644 --- a/modules/codec/avcodec/fourcc.c +++ b/modules/codec/avcodec/fourcc.c @@ -38,10 +38,6 @@ #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 *****************************************************************************/ -- 2.20.1