projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a815a7
)
Use correct dequantizer value
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Wed, 9 May 2007 11:30:30 +0000
(11:30 +0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Wed, 9 May 2007 11:30:30 +0000
(11:30 +0000)
Originally committed as revision 8950 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vc1.c
patch
|
blob
|
history
diff --git
a/libavcodec/vc1.c
b/libavcodec/vc1.c
index
ce4e8ac
..
848c422
100644
(file)
--- 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) {