diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-05-04 18:58:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-05-04 18:58:07 +0000 |
commit | 32cd20de42d5b8adfde57039d2b29df47b31981c (patch) | |
tree | 4f933d972d021598c0835d198aeccd2b7f8d4cc4 /libavcodec/common.h | |
parent | 4085d977dd2aa890042c652897de370f8ed4abc0 (diff) | |
download | ffmpeg-32cd20de42d5b8adfde57039d2b29df47b31981c.tar.gz |
move ABS() to common.h
print mb_types in nice looking format support
Originally committed as revision 440 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index b76288bac7..815ca29009 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -159,6 +159,7 @@ inline void dprintf(const char* fmt,...) {} /* assume b>0 */ #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) +#define ABS(a) ((a) >= 0 ? (a) : (-(a))) /* bit output */ |