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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit70c7c7392089c7c68b6f07184dbb3073799f5d29
tree26a380ef28e9eebdc577a7bd249ccbea034308f5
parent142e1e3e9af80a31fa3f0a90b3172573697306a4
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