diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-05-08 09:58:41 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-05-08 09:58:41 +0000 |
commit | 6b51185c63fd70e342ce3d2979c556cda92ee564 (patch) | |
tree | 807b7385151ebb1b893fcca497dc7aed8be580d1 | |
parent | 1192ce3707a26ce72da1134f9f8b659b6383030b (diff) | |
download | ffmpeg-6b51185c63fd70e342ce3d2979c556cda92ee564.tar.gz |
overflow fix
Originally committed as revision 4201 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 4857dcb5dc..4aaee760cf 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -5378,7 +5378,7 @@ static void encode_picture(MpegEncContext *s, int picture_number) for(i=1;i<64;i++){ int j= s->dsp.idct_permutation[i]; - s->intra_matrix[j] = clip_uint8((ff_mpeg1_default_intra_matrix[i] * s->qscale) >> 3); + s->intra_matrix[j] = clip_uint8((ff_mpeg1_default_intra_matrix[i] * s->qscale) >> 3) & 0xFF; } convert_matrix(&s->dsp, s->q_intra_matrix, s->q_intra_matrix16, s->intra_matrix, s->intra_quant_bias, 8, 8, 1); |