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:22:44 +0000 (01:22 +0200)
commitdf62b70de8aaa285168e72fe8f6e740843ca91fa
tree680f65ca0d9d68220e3a15ad2146e0d7bad60534
parent44188993a1865e6a4e204908319f06cec39d5ee9
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>
libavcodec/x86/lossless_videoencdsp.asm