clamp intra matrix to 8bit for mjpeg (workaround for qscale>=25)

Originally committed as revision 451 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi
2002-05-07 17:55:02 +00:00
parent 723106b279
commit a69b930cd3
4 changed files with 9 additions and 2 deletions

View File

@@ -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