Mercurial > mplayer.hg
changeset 11345:97f11e488141
function convert_matrix() is fixed (off-by-one error) and it is now called with the optimal arguments so that it doesn't do unneeded work, the change was inspired by a comment from Alex
author | rik |
---|---|
date | Fri, 31 Oct 2003 22:22:46 +0000 |
parents | 58e9d191d470 |
children | 414008ccc1cc |
files | libvo/jpeg_enc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/jpeg_enc.c Fri Oct 31 22:07:20 2003 +0000 +++ b/libvo/jpeg_enc.c Fri Oct 31 22:22:46 2003 +0000 @@ -79,7 +79,7 @@ { int qscale; - for(qscale=qmin; qscale<qmax; qscale++){ + for(qscale=qmin; qscale<=qmax; qscale++){ int i; if (s->dsp.fdct == ff_jpeg_fdct_islow) { for (i = 0; i < 64; i++) { @@ -367,7 +367,7 @@ j->s->intra_matrix[i] = CLAMP_TO_8BIT( (ff_mpeg1_default_intra_matrix[i]*j->s->qscale) >> 3); convert_matrix(j->s, j->s->q_intra_matrix, j->s->q_intra_matrix16, - j->s->intra_matrix, j->s->intra_quant_bias, 1, 31); + j->s->intra_matrix, j->s->intra_quant_bias, 8, 8); return j; }