diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-05-09 11:30:30 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2007-05-09 11:30:30 +0000 |
commit | 2a2072fe1e0dcbce68a33ac688c04c00963e56e7 (patch) | |
tree | 3f379b7559cc7554a1093f12e3cdc4f6b1371d4a /libavcodec/vc1.c | |
parent | 4a815a7f6493addd7f268a557a431a2afe60679f (diff) | |
download | ffmpeg-streaming-2a2072fe1e0dcbce68a33ac688c04c00963e56e7.zip ffmpeg-streaming-2a2072fe1e0dcbce68a33ac688c04c00963e56e7.tar.gz |
Use correct dequantizer value
Originally committed as revision 8950 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r-- | libavcodec/vc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index ce4e8ac..848c422 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -2962,7 +2962,7 @@ static int vc1_decode_p_block(VC1Context *v, DCTELEM block[64], int n, int mquan if(ttblk == TT_8X4_TOP || ttblk == TT_8X4_BOTTOM) ttblk = TT_8X4; if(ttblk == TT_4X8_RIGHT || ttblk == TT_4X8_LEFT) ttblk = TT_4X8; } - scale = 2 * mquant + v->halfpq; + scale = 2 * mquant + ((v->pq == mquant) ? v->halfpq : 0); // convert transforms like 8X4_TOP to generic TT and SUBBLKPAT if(ttblk == TT_8X4_TOP || ttblk == TT_8X4_BOTTOM) { |