Commit 6a67acf8 authored by michael's avatar michael

overflow fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4201 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cd55813f
...@@ -5378,7 +5378,7 @@ static void encode_picture(MpegEncContext *s, int picture_number) ...@@ -5378,7 +5378,7 @@ static void encode_picture(MpegEncContext *s, int picture_number)
for(i=1;i<64;i++){ for(i=1;i<64;i++){
int j= s->dsp.idct_permutation[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, convert_matrix(&s->dsp, s->q_intra_matrix, s->q_intra_matrix16,
s->intra_matrix, s->intra_quant_bias, 8, 8, 1); s->intra_matrix, s->intra_quant_bias, 8, 8, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment