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>
Sat, 30 Dec 2017 20:11:31 +0000 (21:11 +0100)
commit96fe37a3390aaa07a1798d8daa6aa2d622c4870b
tree586e15c490fce4d2e6f11d83d4bb4ffe4e8a0cc1
parentb3067f95c9802a1219abe7dea3aa93419c8cc0f7
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