[FFmpeg-cvslog] r10500 - trunk/libavcodec/vc1.c
kostya
subversion
Sat Sep 15 11:24:53 CEST 2007
Author: kostya
Date: Sat Sep 15 11:24:53 2007
New Revision: 10500
Log:
HALFPQ should be used only for when PQUANT is selected
Modified:
trunk/libavcodec/vc1.c
Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c (original)
+++ trunk/libavcodec/vc1.c Sat Sep 15 11:24:53 2007
@@ -2562,7 +2562,7 @@ static int vc1_decode_i_block_adv(VC1Con
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;
More information about the ffmpeg-cvslog
mailing list