diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-11-16 14:55:08 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-11-16 15:04:48 +0100 |
commit | 8f5587c3d0bc4b5f075e4282215bda91a21fc12e (patch) | |
tree | 3e4dd2bff2da46332a6bb524b7c738c92927d899 | |
parent | e6160bda98641b7d4f86de15761ad2a962f21a36 (diff) | |
download | ffmpeg-8f5587c3d0bc4b5f075e4282215bda91a21fc12e.tar.gz |
cpu.h: define AV_CPU_FLAG_MMX2 for libavutil major 52
-rw-r--r-- | libavutil/cpu.h | 2 | ||||
-rw-r--r-- | libavutil/version.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/cpu.h b/libavutil/cpu.h index 01f7201a5e..4929512c66 100644 --- a/libavutil/cpu.h +++ b/libavutil/cpu.h @@ -28,7 +28,7 @@ /* lower 16 bits - CPU features */ #define AV_CPU_FLAG_MMX 0x0001 ///< standard MMX #define AV_CPU_FLAG_MMXEXT 0x0002 ///< SSE integer functions or AMD MMX ext -#if LIBAVUTIL_VERSION_MAJOR < 52 +#if FF_API_CPU_FLAG_MMX2 #define AV_CPU_FLAG_MMX2 0x0002 ///< SSE integer functions or AMD MMX ext #endif #define AV_CPU_FLAG_3DNOW 0x0004 ///< AMD 3DNOW diff --git a/libavutil/version.h b/libavutil/version.h index 6f79eeba21..f69c73e929 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -76,6 +76,9 @@ #ifndef FF_API_AUDIOCONVERT #define FF_API_AUDIOCONVERT (LIBAVUTIL_VERSION_MAJOR < 53) #endif +#ifndef FF_API_CPU_FLAG_MMX2 +#define FF_API_CPU_FLAG_MMX2 (LIBAVUTIL_VERSION_MAJOR < 53) +#endif /** * @} |