avcodec/vc1: more corrections for AC inverse quantization scaling
authorJerome Borsboom <jerome.borsboom@carpalis.nl>
Wed, 25 Apr 2018 18:07:53 +0000 (20:07 +0200)
committerPaul B Mahol <onemda@gmail.com>
Wed, 25 Apr 2018 20:07:20 +0000 (22:07 +0200)
commit144ce364cd2df752226115c243d92083291c9355
treee74d0672018b3100b01169abe648c62fa7dde76d
parent9ae2845b1c0a358f8585634f443283d560715580
avcodec/vc1: more corrections for AC inverse quantization scaling

HALFQP should only be added to the inverse quantizer when the block is
coded with PQUANT. When PQUANT is equal to ALTPQUANT, the original test
for the addition of HALFQP fails. A negative value for mquant indicates
that the value was derived from VOPDQUANT.

Fixes #4372

Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
libavcodec/vc1.c
libavcodec/vc1_block.c