avcodec/vc1_block: simplify ac_val computation
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 23 Apr 2018 00:08:10 +0000 (02:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Jun 2018 23:16:04 +0000 (01:16 +0200)
commitf31ead3f76dab89586bbfdbbe70e055b50f6f040
tree47b80b7dcecd09ed7a5bad81262e5f9b8abd69f4
parentbe9c4cc0e60a2e7cecd25d9c78d4f11aba274620
avcodec/vc1_block: simplify ac_val computation

also fixes: runtime error: index 1456 out of bounds for type 'int16_t [16]'

Found-by: durandal_1707
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d06b01fc2d4f5e031d45f9460d1eea610d23d6c5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/vc1_block.c