avcodec/x86/mpegvideodsp: Fix signedness bug in need_emu
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Nov 2017 19:47:48 +0000 (20:47 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Dec 2017 22:38:06 +0000 (23:38 +0100)
commit6ccf19198b360cfc3fe5cd274948cfde2fe305e0
treecb0c3425add889dbb554c4be29e3f74d203c14c7
parent44fb1201123e554ee07a58bca49d7250c5561fa5
avcodec/x86/mpegvideodsp: Fix signedness bug in need_emu

Fixes: out of array read
Fixes: 3516/attachment-311488.dat

Found-by: Insu Yun, Georgia Tech.
Tested-by: wuninsu@gmail.com
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 58cf31cee7a456057f337b3102a03206d833d5e8)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/x86/mpegvideodsp.c