Mercurial > libavcodec.hg
changeset 5683:dbc41b5a10e7 libavcodec
HALFPQ should be used only for when PQUANT is selected
author | kostya |
---|---|
date | Sat, 15 Sep 2007 09:24:53 +0000 |
parents | 8bf94c994691 |
children | 1eb243819e08 |
files | vc1.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vc1.c Sat Sep 15 09:23:58 2007 +0000 +++ b/vc1.c Sat Sep 15 09:24:53 2007 +0000 @@ -2562,7 +2562,7 @@ ac_val = s->ac_val[0][0] + s->block_index[n] * 16; ac_val2 = ac_val; - scale = mquant * 2 + v->halfpq; + scale = mquant * 2 + ((mquant == v->pq) ? v->halfpq : 0); if(dc_pred_dir) //left ac_val -= 16;