ff_ivi_decode_blocks: fix negative scan_pos case.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Apr 2012 12:58:06 +0000 (14:58 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 15 Apr 2012 12:59:21 +0000 (14:59 +0200)
commit93927eb334dce961603645dd4ed9772bb2400cc4
tree133f2a7166dc9c3e0f5dd0c0e4e010ff5e1699d0
parentf0bf9e9c2a65e9a2b9d9e4e94f99acb191dc7ae7
ff_ivi_decode_blocks: fix negative scan_pos case.

Fixes out of global array read.

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