avcodec/cinepak: fix integer underflow
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 17:33:01 +0000 (19:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 3 Oct 2014 17:34:28 +0000 (19:34 +0200)
commite7e5114c506957f40aafd794e06de1a7e341e9d5
tree457d05ac24e041e893eff0bd17bdaa35d36c685c
parente830902934a29df05c7af65aef2a480b15f572c4
avcodec/cinepak: fix integer underflow

Fixes out of array access
Fixes: asan_heap-oob_4da0ba_6_asan_heap-oob_4da0ba_241_cvid_crash.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cinepak.c