From 804d7a1aa6fd33fbe405698d90d02121423e540c Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Thu, 9 Aug 2012 03:06:01 +0200 Subject: doxygen: Fix function parameter names to match the code --- libavutil/xtea.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavutil') diff --git a/libavutil/xtea.h b/libavutil/xtea.h index cf305c6..7d2b07b 100644 --- a/libavutil/xtea.h +++ b/libavutil/xtea.h @@ -36,7 +36,7 @@ typedef struct AVXTEA { /** * Initialize an AVXTEA context. * - * @param x an AVXTEA context + * @param ctx an AVXTEA context * @param key a key of 16 bytes used for encryption/decryption */ void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16]); @@ -44,7 +44,7 @@ void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16]); /** * Encrypt or decrypt a buffer using a previously initialized context. * - * @param x an AVXTEA context + * @param ctx an AVXTEA context * @param dst destination array, can be equal to src * @param src source array, can be equal to dst * @param count number of 8 byte blocks -- cgit v1.1 From d913fd1f00adbbba50c58384906ef40f5ec4850d Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 8 Aug 2012 18:18:14 +0100 Subject: libavutil: drop fallback definitions of INTxx_MIN/MAX This list is incomplete (we also use UINT16_MAX), so there does not appear to be any system we care about that needs these. Signed-off-by: Mans Rullgard --- libavutil/internal.h | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'libavutil') diff --git a/libavutil/internal.h b/libavutil/internal.h index 4c1d2f6..58e5568 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -52,38 +52,6 @@ struct AVDictionary { #endif #endif -#ifndef INT16_MIN -#define INT16_MIN (-0x7fff - 1) -#endif - -#ifndef INT16_MAX -#define INT16_MAX 0x7fff -#endif - -#ifndef INT32_MIN -#define INT32_MIN (-0x7fffffff - 1) -#endif - -#ifndef INT32_MAX -#define INT32_MAX 0x7fffffff -#endif - -#ifndef UINT32_MAX -#define UINT32_MAX 0xffffffff -#endif - -#ifndef INT64_MIN -#define INT64_MIN (-0x7fffffffffffffffLL - 1) -#endif - -#ifndef INT64_MAX -#define INT64_MAX INT64_C(9223372036854775807) -#endif - -#ifndef UINT64_MAX -#define UINT64_MAX UINT64_C(0xFFFFFFFFFFFFFFFF) -#endif - #ifndef INT_BIT # define INT_BIT (CHAR_BIT * sizeof(int)) #endif -- cgit v1.1 From 1c4ab37c38e4ede6bbdf95221ad6cbf1bbcb7e9d Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 8 Aug 2012 20:09:33 +0100 Subject: libavutil: drop offsetof() fallback definition The only compiler I have that does not define the standard offsetof() macro is "Bruce's C Compiler", a simple compiler for producing 8/16-bit 8086 code, usually for use in early stages of PC booting. Signed-off-by: Mans Rullgard --- libavutil/internal.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavutil') diff --git a/libavutil/internal.h b/libavutil/internal.h index 58e5568..aa56c05 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -56,10 +56,6 @@ struct AVDictionary { # define INT_BIT (CHAR_BIT * sizeof(int)) #endif -#ifndef offsetof -# define offsetof(T, F) ((unsigned int)((char *)&((T *)0)->F)) -#endif - /* debug stuff */ #define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) -- cgit v1.1 From 54918d0394dda4fce52e7cddde0d35ff4e6add7e Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 8 Aug 2012 22:58:07 +0100 Subject: libavutil: remove unused av_abort() macro Signed-off-by: Mans Rullgard --- libavutil/internal.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavutil') diff --git a/libavutil/internal.h b/libavutil/internal.h index aa56c05..75c5156 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -56,10 +56,6 @@ struct AVDictionary { # define INT_BIT (CHAR_BIT * sizeof(int)) #endif -/* debug stuff */ - -#define av_abort() do { av_log(NULL, AV_LOG_ERROR, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) - /* avoid usage of dangerous/inappropriate system functions */ #undef malloc #define malloc please_use_av_malloc -- cgit v1.1 From 0d735ca214b32aa6e9a4bf4dd5d8a6c242dbaa29 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Thu, 9 Aug 2012 22:45:51 +0100 Subject: ARM: add missing "cc" clobber in av_clipl_int32_arm() Signed-off-by: Mans Rullgard --- libavutil/arm/intmath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavutil') diff --git a/libavutil/arm/intmath.h b/libavutil/arm/intmath.h index fa31ecf..ce73404 100644 --- a/libavutil/arm/intmath.h +++ b/libavutil/arm/intmath.h @@ -108,7 +108,7 @@ static av_always_inline av_const int32_t av_clipl_int32_arm(int64_t a) "mvnne %1, #1<<31 \n\t" "moveq %0, %Q2 \n\t" "eorne %0, %1, %R2, asr #31 \n\t" - : "=r"(x), "=&r"(y) : "r"(a)); + : "=r"(x), "=&r"(y) : "r"(a) : "cc"); return x; } -- cgit v1.1