avcodec/x86/lossless_videoencdsp: Fix handling of small widths
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Sep 2017 22:20:09 +0000 (00:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Oct 2017 23:34:00 +0000 (01:34 +0200)
commit6fa58eabb18c4641f0a02c1756e1daadc0d4427b
treee87cd031c284d9f7e6b51d778d9521a569bfbd0c
parent9825fcea99e4dd7f054db19657df87034ac653da
avcodec/x86/lossless_videoencdsp: Fix handling of small widths

Fixes out of array access
Fixes: crash-huf.avi

Regression since: 6b41b4414934cc930468ccd5db598dd6ef643987

This could also be fixed by adding checks in the C code that calls the dsp

Found-by: Zhibin Hu and 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit df62b70de8aaa285168e72fe8f6e740843ca91fa)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/x86/huffyuvencdsp.asm