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, 9 Jul 2018 23:52:55 +0000 (01:52 +0200)
commit60e7be58d996b8f14e99876472fdbdbc4db370d8
treeb717aaa317bf2d28f3888bc24ab46984ea05867d
parent8eee712737c2aa2f643998e752f480ad42bb0612
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