diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2002-05-07 17:55:02 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2002-05-07 17:55:02 +0000 |
commit | a69b930cd36503d80e7362f91493e306cd800aca (patch) | |
tree | 2fd8d915d27be65afe71a94ecb4edfcbec8d4da8 /libavcodec/common.h | |
parent | 723106b279d9d78f5966f32bedfa33b88a702f69 (diff) | |
download | ffmpeg-a69b930cd36503d80e7362f91493e306cd800aca.tar.gz |
clamp intra matrix to 8bit for mjpeg (workaround for qscale>=25)
Originally committed as revision 451 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index 815ca29009..38379a4cfc 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -902,4 +902,6 @@ void *av_mallocz(int size); /* math */ int ff_gcd(int a, int b); +#define CLAMP_TO_8BIT(d) ((d > 0xff) ? 0xff : (d < 0) ? 0 : d) + #endif |